I've only just got a new Mac after having my last one for nearly a decade. I've had to replace two windows machines in that same time period. Not exactly cold hard data, but a sample size of 1.
There are also windows machines that make it hard to replace things mind you.
Same with me and a lot of people I Know. Macs are so reliable (in general, don’t want to get into a debate as a lot of viruses don’t target them as Windows is larger) that upgrading is not required for a long time.
It may change in the future if Apple introduces planned obsolescence, but so far no issues
Having done over a decade of desktop support for several companies, both apple and windows shops. This notion that Macs are more reliable doesn't hold water for me.
If we compare devices on the same price scale (premium category) as macbooks, amongst thousands of devices, we actually found them to last the same length without any upgrades (6-10years average)
What a lot of people neglect to consider is that non-Apple brands have an entire "budget" category that Apple does not participate in. It's wrong to compare this category with devices of another category, no matter the make and model.
Counterpoint: it's a lot more wasteful, especially for desktops, to own Apple.
Look at all the iMacs with recent, high quality 5K monitors that'll be scrapped, as they can't be used with another video source.
Unless you need a monster dedicated GPU, you could get a Mac Mini. Or if you need GPU power and you have money to burn, you could get a Mac Pro. No screens attached.
There are also windows machines that make it hard to replace things mind you.