I think a lot of people would nod along with the idea that Android phones eventually have more issues. Certainly, between myself (iPhone user) and my wife (Android) it's her that has to change her phone every 2-3 years with escalating issues toward the end, and me that keeps using the same one for 5-6 with no issue.
Actually I'd say the same thing used to apply to Mac vs PC, especially laptops -- the Mac would be the one that keeps ticking basically forever while Windows laptops would encounter some kind of issue. But right now I'm on a 5 year old Windows laptop that works just fine (minus a few minor maintenance issues over the years), and I think that's not terribly uncommon. So it's not like Apple has some unattainable super-power, it's just the current situation in phone land.