Was the last android version you used released on a 3rd party device in 2012? Because that's what you're describing.
Android One makes a big difference.
Of course this is anecdotal but that's how I (and probably most) people decide what to buy. There are many things that aren't ideal about iPhones but I've never had one crash on me and most apps are way more polished and work better -- not that this latter part has anything to do with an inherent weakness in Android, but it's just reality as I perceive it.
I've had many Android devices in my life and I loved many of them, OnePlus 3 being the one that stands out. Still, I just feel it's not for me anymore.