What Apple did, secretly throttling devices for years in order to sell new ones, was dirty, underhanded and egregious. And they had the gall to try to tell folks when they got caught that it was to "protect" their older phones.
Compare that to Android's accidentally turning ON a Battery Saver feature during testing and quickly turning it OFF again and then quickly telling people about the mistaken setting the next day.
+1
Google screwed up, and people have a right to be bothered by it, but before standing up in a righteous fury to run to Apple and bathe in its motherly embrace, the proverb "the grass is always greener on the other side" should be remembered and a little more scrutiny applied.
Apple's actions were done in (what Apple reported, after being caught) was what it decided was in the 'best interests' of its customers. Their changes were clandestine and cloaked in an OS upgrade highly promoted and pushed out to the devices, and with no ability provided for consumers to opt-out or reverse the change upon install. Essentially, Apple took it upon itself to sacrifice one aspect of performance which the device owner may have based their purchase on in favor of another that may have been less important to that owner, and by so doing deemed that their customers either lacked the mental capacity to be provided the option to make that decision for themselves, or did not deserve the right to make that decision for themselves.
As to why kept it clandestine, the best case argument in Apple's favor is that they didn't think changes performed from their end were worthy of mention. A less generous interpretation would be that they didn't feel it was in Apple's best interests to have it known, and as many have interpreted it it was a self-serving act of accelerating obsolescence to drive a faster upgrade cycle among its customers.
There's plenty of great reasons to buy or stay with the Pixel. There's plenty of great reasons to buy or stay with an iPhone. or a Samsung. Or an LG, a Huawei, or a ______ of your choice. But if you're considering a switch, be mindful of the facts and avoid making decisions based on forum or marketing 'spin' thereof.
All of the OEMs are businesses. They're all going to do things openly or secretly that we would prefer they didn't. Sometimes we'll catch them, sometimes we won't. But at least with regards to accidents, be mindful that accidents happen, and will happen again, with every OEM. What will likely be of much greater value to your long-term peace of mind is how those OEM's handle accidents.