A phone with stock Android should last comfortably for 3 years. And this is from my personal experience. I have used Google Nexus 5, and Nokia 7 Plus, both with stock Android. Now I have Nokia G60 5G. Phones with stock Android don't come with bloatware, and if they do, they can be easily uninstalled. Stock Android keeps the phone light. I like my phones to last long for as many years as possible, and all my choices have proven to be good for this purpose.
I like the Nokia G60 5G too, and it is performing very well. But, I am having issue with the power button. That's the only problem till now.
I think Nokia, Moto, and Nothing (correct me if I am wrong) phone offer stock Androids.