This isn’t talked about enough. Apple at least for now support more older models than most if not all androids. The key is not to buy into the marketing. Phones today are good enough and mature enough to not need to be at the bleeding edge every other year. Just get a new case, new wallpaper and swap the battery before deciding a new phone.
Honestly if you care about camera improvements, get a second hand semi decent mirrorless or point and shoot camera. Way more fun. And easy replaceable battery and storage.
Mine is an extension of my body. I can’t not have it with me going out. But I get thirsty a lot. Took me a while to fine one that works for me size and function wise.