My experience with Google hardware has been the opposite. Three early Pixel phones died within a year or two, and pretty abysmal experience with Pixel Buds. They'd send me replacements, but I tired of them breaking.
I switched to an iPhone after being a long-time Android fan. Haven't looked back. Converted my wife to an iPhone too. Apple is better at hardware.
iPhones also receive security updates for a long time. I buy iPhone 3+ generation old brand new at the Apple store, and it... works really well.