I have a S22 for already 1 year and I can say the battery is REALLY shit. However It does charge so fast that if you dont mind charging once or twice for a couple of minutes here and there, you will not even notice that issue. Beside of that, the phone is really good. I would recommend the S23 just because it seems that theu fixed the battery.
So go for a S22 with no fear. Battery sucks, but the rest is simply amazing (I have one and I dont mind charging it often, bcuse it charges really fast btw)