My pc has lasted 14 years (and I expect another 40) and been capable of playing every game in that time because I've been able to upgrade it without dropping thousands at once.
Apple products are good for sure, but they don't let the consumer choose very much. Sometimes that's good (I always advocated apple products for my grandparents) but more often than not it's just annoying.
I buy a new android phone every 3ish years and give my old one to my mum, she's never had one break yet so all mine have had at least 5-6 years life before she upgrades to my latest old one (and possibly it still has years left). I don't buy the idea that Apple phones last longer than Android at all.