Why is it not possible to compile and install a complete clean Android directly from the sources on your phone? What are the things that prevent that?
You might be able to install a third-party, community-maintained OS, like LineageOS, though, if your hardware is supported. The downside is that I believe apps like Google Pay won't work anymore, since they require Google's SafetyNet attestation system to pass. Sometimes there are ways around that, but they always seemed like unreliable hacks to me.
One and only problem i see with Lineage is that VoLTE wont work and as we dont have 3G anymore it is must have.
Now it seems only Google's own Pixel phone is the only one that's hackable enough to run LineageOS or /e/ or other de-Googled distros.