My iPhone XS which I bought in 2018 just got the iOS 17 update and it's working pretty well.
I want to be able to load whatever I want on my phone, but I also don't want to have to buy a new phone every couple years (or sooner! Looks like the 5a is still in production with security updates ending in 11 months) to get Android updates, or even security updates.