Imo the minute we switched to SSD, the longevity of our laptops extended significantly. The major component breakage is that spinning platter hard drive.
I have a windows laptop with SSD in it from 2014, and I don’t see why it would not work for 4 more years (discounting battery age).
I also just got a 2012 Mac mini, and once I put an SSD in it, it is a fine working Mac.
On laptops, battery becomes the bottleneck of aging. On desktops, maybe dust and the fans? The less moving parts you have, the better the longevity.
But Apple knew this, and thus imposed another bottleneck, which is software. Using my example above, that 2012 mini will no longer be supported by Big Sur. In contrast, my Windows laptop will continue running the latest Windows 10 until probably forever. This what’s annoyed me of Apple.