I don't think you're entitled to an equivalent phone. If we're talking patents on essential things like a cryptographic algorithm required for banking or a technology required to implement 5G, sure, the patent holder should be required to license the patent to anyone at a reasonable price. But not licensing patents on non-essential features like Face ID or health monitors are OK. And all of that is independent of whether or not you can install your own software.
What matters is the competitive situation. Given that you're practically required to have either a Google or Apple device to participate normally in modern society, Apple and Google should be precluded from forcing customers and suppliers[0] to use their other services, like payment services, app stores, delivery networks, ad networks, etc.
But if Apple were the 4th biggest phone platform with at most 10% of the market, Apple would definitely be entitled to remain a walled garden. Even if their phones had features no-one else can implement due to patents.[1]
0: E.g. app developers
1: I'd claim this is the only position that is consistent with being in favor of patents. But I'm mildly anti-patent, so YMMV.