With a Pixel phone, you can go further, unlock the bootloader and install a third party OS that does not even include Google services installed at all.
Of course, on the other hand, you could sign up for every google service, load all their apps, and consent to all their tracking, in which case you give away everything. Google makes it very easy to do this.
But either way, it's at least your choice. Unlike Apple, which thinks it certainly knows best what code should be allowed on your computer and how it should be placed there.
But depending on how far you're willing to go to get around it, there's a solution: MicroG [0].
It's basically an open-source Google Play Services implementation and it supports a number of different location providers like Apple and Mozilla.
There are a bunch of ways to install it but the easiest is probably their LineageOS ROM [1].
[0]: https://microg.org/
I'm not saying that this is what most people are going to do, and I'm certainly not trying to openwash Android-as-marketed-by-Google. Just pointing out the path exists if you'd like to go down it. It helps to have an extra device, to be less tempted to compromise [with] your main one.
https://myactivity.google.com/activitycontrols
You can configure it to delete after a certain period of time (eg 3 mo) or to never store it. You can also view and delete specific bits of data.
Of course, I am sure there are loopholes and bugs that result in some information remaining on Google services, but for privacy conscious users who rely on some Google services, it's worth experimenting with and spreading.
Its cash and profitability relative to the market give it a ton of negotiating power with investors who might see things differently when it comes to business decisions.
Apple makes money by focusing on its customers and brand. Investors have learned to let it do that.
I like to think I am as well. How do you balance this when moving from Apple to Android, where Apple (seems) to be much more privacy-focused and basically at zero for open-source/freedom, where Android is basically the reverse? I think there are ways to make it better (custom ROM, alternative app stores), but you give up a lot of functionality (Play Store, Google Pay, etc.), and I'm not sure you can entirely eliminate all concerns.
I like the freedom of Android, so as long as I understand what I'm giving up privacy-wise I don't mind the trade-off. I have at least tried to make it a little harder for Google, using DuckDuckGo, but I'm guessing it only makes a dent with the other massive amounts of data they can still glean from the various services running on the phone, Gmail, Maps, etc.