Google and Microsoft are not the only evil software corporations - Apple has become that as well. Fortunately desktops seem to have been made immune, while the iOS app continuous to lock everything down inside of its walled-garden philosophy. Apple makes it super difficult to send files to the device - e.g. if you wanted to transfer a file (like a PDF) from one machine to another using your device as a USB drive - and other things so that while yes, if every single thing that you want to do lies within this walled garden then you are fine, however if you want to set even one foot outside of it, you will quickly find the limitations unbearable. e.g. the experience using an Apple email account is amazing - you can start typing a message on your phone, then continue on your desktop, then continue again on your phone, back and forth as much as you like. But even just sending and receiving emails at all, or like working with calendar invitations, using a non-Apple email account provider, such as Google's Gmail or Microsoft's Outlook, it's absolutely abysmal. Every professional workplace I've ever been has given me a Microsoft email that is mandatory for me to check, so I don't have the option of simply not using Microsoft, and instead I find myself not using iPhones, as they do not meet my needs.
Android is not Google. Android is open source, and there are many implementations of it - Samsung is very popular, OnePlus used to be, and yes Google Pixels are just one example of Android but they are by far not the only ones. They are the most "pure Android" versions of the software though, without added vendor-specific stuff like both Samsung and OnePlus have entirely separate stores to purchase apps from in addition to the Play Store. It gets a bit more complicated when Google has used the "embrace and extend" philosophy to somewhat destroy Android from within by poisoning its development from the inside to make it work the way that they want to - but importantly, anyone at any time could create a fork and continue its development along different lines (which routinely happens! these are the "custom ROMs", like Lineage OS), so it still lies within the realm of open source software, as opposed to Apple's walled garden that is entirely closed, both in source and in terms of you not being allowed to do with your Apple hardware what you wish.
You might also like a Fairphone then. Or we may both end up hating it - I don't know enough about it to be able to guess, it's just that other than iPhone or a major Android provider like Samsung or Google or OnePlus, what else even is there, especially an option that is more purely open source?