total cost of operation/use case
My first consideration on getting a new phone is how long it will be supported. I used to have an Android; not only was it unreliable, it never, ever, got OS updates and barely got other updates, nothing at all after six months. It was replaced by an iPhone. Years later, still getting updates, including OS updates, over the air, no problems. I will probably replace it in a year or two with another iPhone, having got in excess of six years out of it. Yes, it cost more than the Android, but I'd have had to buy three or four of 'em in the same time period. As I didn't buy a top-of-the-line iPhone, it cost about double what the Android had cost. Spending more in the first place resulted in a lower TCO, as the phone plans and carrier were the same for both the Apple and the Android.
My second consideration is the use case. When I got the Android, I was fairly new to the whole smart phone thing, and didn't have any investment in various stuff: apps, music and other media, books, etc. Over the last few years I have spent a lot of time making my life more convenient by accessing stuff from the phone. I have a lot of stuff parked in various things on the iPhone. (and my iPad, but that's another story) If I were to move to Android now, I'd have to rebuild all of that. That's not happening unless Apple totally loses the plot. It's just too much work. I would expect that people who have spent most of the last five-six-seven years on Android also have far too much invested in that 'ecosystem' to be able to easily move.
I will not be buying an iPhone X. I might buy an iPhone 8, or whatever succeeds the 8, next year or the year after. It will be more expensive than low-end Android. It will also last longer, be better supported, and fit in better with my existing 'ecosystem' than any Android, no matter how cheap or expensive.
The major reason why I have Apple devices is not about shiny. It's about the fact that when I tried Android I got burned, badly, while the Apple devices did what I wanted, when I wanted, and how I wanted.
YMMV.