What’s nice about apple is that they use high enough quality components that it lasts awhile. I’m the kind of guy to drive a Honda until it’s just about dead before buying another. I bought my MacBook pro in I think 2011 (maybe 2013, I can’t remember). It still runs fine. The battery is not worth much, maybe 30 minutes. But I have no real reason to replace it. Everything is fine. Compared to when I had cheap laptops before, I think I went through 3 in a span of 6 years.
I’m guessing the key here is getting a laptop with high quality components that isn’t apple, but I don’t know which ones are actually good, and which are just artificially expensive laptops. Reviews don’t help too much either because so many are fake, and also that I don’t think many people keep their laptops 10+ years to compare longevity. I will probably go buy another apple when mine finally dies.