One reason for me not to buy 95% of the android phones is the horrible security update regime almost all producers have. 2 years after model introduction (so if you buy a year old model it's just one year left) and the best of them stop supporting. Lots of them never give out any update.
Since about 2012 Android phones have been getting security scans via Google Play Protect, part of the PlayStore app. That means that Android phones are often protected years longer than iOS devices are.
Not to mention that the core Android apps are updated individually, unlike iOS where an "OS" update is necessary just to add more security to mainline apps like Safari. And after X years, iOS devices stop getting updates.
In other words, I have old Android devices running more up-to-date core apps than my old iOS devices... which actually became useless due to slowdowns from forced iOS updates.