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’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