FWIW, I replace my phone every ~4 years on average. With the XS Max, I have the latest OS with the latest security updates and a state-of-the-art web browser and an outstanding screen & audio. Admittedly it contains a bunch of technology I'm not making much use of at the moment, but even then the battery lasts more than 24 hours easily with regular use. If/when those killer AR apps come along, the phone is equipped to take advantage of it.
The price of the phone was something I was happy to pay, for the peace of mind that I've got a device I can depend on for as long as I want to keep using it.
I got burned about a decade ago by carriers not supporting Android updates on the early HTC devices and it left a bad taste in my mouth. Perhaps that has changed but this chart still doesn't inspire much confidence: https://developer.android.com/about/dashboards
I bought a used HTC One M9 about 2 years ago, refurbished for 80$ and it does every I could ever want with a phone: online browsing, hacker news, apps, great graphics/sound. None of the apps are laggy. there doesn't seem to be any downside at all. Admittedly the battery is weak, but then so are most of the new phones.