Totally not true. Everything I've bought from Apple starting in 2003 (with the iPod) is still functional today. Granted, I have no real need for that original iPod but if I plug it in today, it will still function just as it did nearly 20 year ago and will still have those old Pearl Jam and Oasis songs loaded on it.
I have a 2011 MacBook Pro that a few years back lost it's display. It was just turning five years old at that point and I took it to the Apple store, figuring they'd tell me to buy a new one (and I would have). But no, they told me this was a known issue and they had a fix for it. Free of charge. I picked it up the next day and it was just like new. I still have it today but it has been retired in favor of the Air.
I have a mid ‘08 MBPro 17” that I have lugged all over the world nearly every day from ‘08 until I retired in ‘17. It looks like Maynard the tow truck with some deep scratches on the bottom. It is the one I am using now and is slung in a cradle I made to attach to the side of my desk. I upgraded the memory to double it and the HDD to solid state several years back. It has reached the limits of its upgradeability and so I am in the market for a much newer replacement since it has become inconvenient. It will be another laptop so I can take it out to the shop when it is not in my office.
At the same time I bought mine I bought my wife a MBPro 13” that she used for browsing. Never has had a battery but needs one. Other than that, it keeps going.
My son has a MB and I don’t even know the year, that he bought used in college in ‘02. He still uses it. Must be at least 20 years old or more.