There's lineageOS for outdated pixel device, but I think you loose device attestation if you flash that, so your banking, payment and digital-ID apps won't work anymore which is kind of important features for a lot of people.
I still think separating a phone for phone apps and a PC for productivity, is the best choice even if that PC is a 20 year old rustbucket from the dumpster, it will still do more tasks than a phone. You can't learn photoshop on a phone.
Your banking app might not work but your bank probably also offers a web page that you can just load up in your browser
The lineageOS kernel isn't guaranteed to be super up to date. It's often based on the manufacturer's kernel. There's also possibly binary blobs involved which can't be checked or updated.