Fairphone 4.
I don't play demanding games on my phone, so I don't need some overpriced flagship device.
What I do need is a consumer-replaceable battery and as many other parts as I can get. This means I can get replacement rear- and front-facing camera, earpiece, loudspeaker, USB port, display, back cover and of course battery. All from the original vendor and replacement can be done by me, armed with only a small screwdriver and maybe a spudger for the display.
Over all this is probably one of the most repairable phones and I bought it hoping it will last me 10 years.
I'm currently running Iodé (Android) but hope to switch to PostmarketOS in the future. Maybe with a detour via Ubuntu phone.