You can. There are dozens (hundreds?) of phones you can buy that aren’t an iPhone. It’s been well known for nearly 20 years at this point that iPhones are more closed than the competition (of which, again, there is a lot). They are successful because of this, not in spite of it, contrary to internet belief.