Google’s hardware track record is a joke compared to Apple.
For Apple, each iOS release is more demanding than the last. Then compound that with batteries produce less current as they age. So, the CPU can't run quite as fast because it can't draw as high of current for older batteries. The alternative is to let the CPU try to ramp to max and cause the CPU to error/crash. It was mostly a messaging failure, and the battery health info/settings got significantly improved because of it.
Here is Google's page on it: https://support.google.com/pixelphone/answer/16340779
And if you aren't in an eligible location they'll pay you cash or give you a discount on a new phone. I'm really unclear what seems so terrible here.
https://www.heise.de/en/news/From-June-20-EU-gives-smartphon...
In other words, manufacturers aren't required to publish updates at all, but if they do provide updates they have to make them available to users for five years after they stop sales. This only stops the case where a manufacturer ships a device and publishes updates for the device, but then takes those updates offline after they stop selling the device (but before 5 years is up).
https://www.theandroidportal.com/motorola-android-update-loo...
I'm having a hard time googling it since every result that comes up is about Google cancelling Nexus phones entirely way back when, but I remember a lot of Nexus users were kind of PO'ed about it.