https://www.metrobyt-mobile.com/cell-phone/apple-iphone-13?i...
That's a prepaid cell phone company (no contracts); not sure how many months (if any) you have to pay for to unlock the phone. Renewed and unlocked ones are about $270 on amazon.
The current iOS supports things back to iPhone 11 and the SE2, so you can expect the SE3 and iPhone 13 to get at least two more years of support (no real guarantees, but they're still selling new stock of both, and they have a reputation to protect).
If Google is narrowing their moat on this, there are a lot fewer reasons for me, personally, to stay on the platform.
If I assume "it" means "programming on a mobile device": yes, it is. Apple cares an awful lot about the developer experience, has massive support, and a deep well of shareable knowledge. Google is about the same (the developer experience is a little patchier; I'd generously call Google's approach to devex on Android "bag-of-cats vision" and since one is not developing on, generally, a vertically-integrated tech stack, one has to struggle a bit more to get the tools set up and maintained).
The big selling point for Android is freedom of that stack, and if they throw sand in those gears, the benefits of the vertically-integrated stack that you have to pay-to-play start to become actually enticing.
Realistically a 200 euros Xiaomi phone, to most users, is as good as they need it for seeing videos online and chatting.
If you want to spend more, at each price tier you have plenty of choice including: better hardware, better cameras, more memory, etc.
E.g. I do need dual (physical) sim phones. So I ain't buying iPhones ever for this very need.
Consumer trust is very debatable: I have been locked out of my apple id for 2 months in 2021, and that was a work machine I was locked out from. Tragic. Apparently it's not my hardware if Apple decides it's not.
Nowadays I only own an M3 Max because my employer gave it to me. But I don't even use it unless on the move, as I have a way more powerful desktop computer.