Both desktop and laptop computers have been perfectly serviceable for that long for a while now. Computers are "good enough" for tbe overwhelming majority of tasks most users (note, most regular users, not the HN crowd) would throw at them
Desktops, I'd agree. My experience with most Windows laptops, non-Thinkpad class, is that they physically haven't been able to survive that long. Like, people rag rightly on the butterfly keyboard era of Macbook Pros, but until recently you'd see pretty drastic hinge or keyboard or touchpad or case failures on even fairly expensive laptops. Especially as you get into more slimline/ultrabook form factors; I've seen some really bludgeoned Dells and HPs in particular. (Though I liked my Spectre x360 aside from the party where it fell apart in normal everyday use.)
I recently took a 2012 rMBP out of rotation (~five years dedicated use, the last five intermittently as a Logic Pro workstation) and now it's a Kubernetes homelab node. But I took it out because Thunderbolt 3 now means I can just slot my M1 Max into my workspace and don't need a dedicated box; the keyboard, touchpad, hinge, screen, and case are all pristine, I didn't remove it due to hardware expiry.