iOS is way too locked down. Granted, it depends on what you do and what you need, but since you’re asking in this community yeah… not the best choice.
Honestly just get a Android phone that’s just pure Android OS and nothing else, you don’t have to deal with the added junk that Samsung or whoever want to add on top of the OS. e.g. Google Pixel is quite excellent for this. And even still, if you end up wanting a different OS try installing GrapheneOS & see how it goes.