Apple is miles ahead of Android when it comes to phones and tablets, most in the Android ecosystem is e-waste four or five years in, while Apple stuff can still be re-sold for actual money at that time assuming you didn't bust your screen.
For laptops, Apple is so far ahead it can't even be described. Most Windows laptops physically break apart before macOS ceases to support any Apple laptop.
Only thing we can maybe talk about is desktop PCs ever since the switch to M that basically made meaningful upgrades impossible, but eh, in my attic there's a 2009 Mac Pro still chugging along as my homelab server + gaming rig.