You can run Android with Google in a sandbox. Then you get the Play Store and it's Google Services, but they don't get control of your phone or any apps outside of their jurisdiction. Daniel McCay did this very well in GrapheneOS.
I'm unfamiliar with iPhone jailbreaking but that sounds like a good thing.