

Not true. Android (or Android Open Source Project aka AOSP) itself is a bare operating system.
The spyware package(s) you’re referring to are gapps, Google Apps (this includes things like Phone and Messages, as well as the obvious ones like Maps, GMail and Chrome) and OEM bloatware. It also includes your keyboard.
One of the key features of Android, however, is that you can change these core apps. You can use bare AOSP apps, which are FOSS forks from before Google closed and developed the “spyware package”, or you can find your alternative apps or even make your own. You can do this on any Android phone, without hacking it. (At least, you can for now, Google has over the last couple months been making loud noises about blocking that.) You can also block ads system wide.
You can also hack the phone, unlock the bootloader and install custom firmware. You can have root access to the device and control how it works at the lowest levels. This incurs some level of risk, as in theory a bad actor could attack you and do the same, but personally I’m happy to take that high severity, low likelihood risk in exchange for the low severity, certain likelihood of Google and OEM’s spying on me. You can install some ROMs without gapps, and this is always my preference (you can use a suite called MicroG to simulates having gapps on your phone, so apps that look for it can still function. But you lose some banking apps or Google Wallet tap and pay functionality [unless you’re really tricky with your hack]).
If you install AOSP without gapps, it will probably come with the FOSS AOSP versions of apps like Phone.
AOSP is what OEMs take and then alter for their products. For big manufacturers eg Samsung they put their entire flavour into it, but some others eg TVs and particularly small bespoke devices (eg scanners for stock taking in a warehouse) they may just run a simple barebones AOSP build.
In the custom ROM scene, you see a mix of different ROMs. Every device (that can be hacked) will likely have AOSP ROMs, eg LineageOS is available on just about everything, but you’ll also see custom versions of the OEM ROMs but with all the bloatware stripped out. Eg, Samsung used to call theirs TouchWiz, which eventually evolved into the current OneUI; Xiaomi called theirs MIUI which is now HyperOS I think. However I’ve always felt its better to never have the crap in there than to strip it out - for this reason I’ve always preferred AOSP ROMs that have a separate gapps install (which I can skip).
TL;DR the spyware is in the apps, not the Android OS.

You could say exactly the same thing about Windows PCs these days.
Personally, I’ve found Pixels to be a pain in the butt to hack. On a Samsung phone you can run TWRP (custom Recovery partition, where you flash the OS) and do it all on the device, maybe with a USB thumbdrive to back up settings and hold ROMs, or even NAND backups of the active OS. I used to hop back and forth between ROMs in a single lecture when I was at uni. On Pixel phones the workflow pretty much requires you to plug into a laptop and sideload from it.
I’ve always likened it to stacking a house of cards - particularly trying to set up MicroG and root.
They definitely actively try and make it harder to do, to keep you in their walled garden. But also, I’m sure really wealthy people run custom ROMs from professionals that aren’t available to the general public.