The win-win solution is to only buy Pixel phones that are several generations old. The kinks are ironed out, they're less than half the price, and for 95%+ of users, they're just as capable as the latest-and-greatest.
According to https://support.google.com/pixelphone/answer/4457705?hl=en pixel 5a is getting eol this month, with the next security update dropping for pixel 6 starting in October 2026
"Last gen" pixel 8 is going to get android and security updates through October 2030
The common security issues (app can get permissions it shouldn't have) are nowhere near as important if you don't download random APK's from dodgy sites.
Overall, my fully patched linux laptop has far bigger security holes than a 2-years-unpatched android.