I love the openness of android, and the explicit permission to root your phone.
But iphones have amazing longevity. The iphone 5s you mentioned came out in 2013 - which is 8 years ago now. Back then Obama was still in his first term. Maybe it is way too slow to handle the most recent version of iOS, but I'd rather a phone vendor that releases operating system updates for 8 years than a vendor who releases updates for only 2 years (like you get with certain android vendors.)
Last year I replaced my iphone 6s with an iphone 12. The thing that astonishes me is that I didn't need to. After a battery replacement, my 5 year old iphone was still running fine. It still runs the latest OS, and it ran every app I threw at it with aplomb. I really only upgraded it as a personal indulgence. Its still in use by a friend.
I'm absolutely on board with complaints about apple's lock in. I'm disgusted by some of the documents that came out in the epic court case, and I wish you could easily root iphones. But it feels like a stretch to complain about their longevity.