While the Pixel 6 ushered in three years of major Android OS version updates and an additional two for security patches, that’s still nowhere near the longevity of the iPhone. Google hopes to change that on the Pixel 8 and 8 Pro with noticeably more OS updates.
I use home assistant to manage this for me. I have a zwave plug for my phone charger, and when home assistant notices that my phone is at 75% or greater it turns off the plug. It will turn it back on when my phone drops below 65%.
I’ve actually been thinking about doing this, though I think it would be even better if there was a smart USB socket that could adjust the power output on the fly. For example, you could program a custom charging curve to have full speed charging until 50%, 10 Watts until your desired battery level. For now I guess the smart switch idea is better than nothing