This logic is outdated. The top of the line iPhones are no more (and sometimes a bit less) than comparable Android flagships.
Their base models come in around high-midrange Android, true. But some of the specs (CPU/camera) still beat out Android phones at their price range. Heck on CPU they often beat more expensive Android phones.
I'm not saying that because I'm a fan of Apple it's just like, it's not just them. I've had something like 9 Android phones and 6 iPhones. Really in the end they aren't that different day-to-day.