The answer is, "it depends".
I think Macs can be useful for a longer period of time than a Windows computer. For instances, I'm still using my Macbook Air (2013). It's 13 years old and can still do what I need it to do. Is it fast? no. Can I surf and manage my photos? Yes.
If you were to give me a 13 year old Windows laptop, I would not want to use it at all. My previous work laptop from 2018 was a complete dog and I was happy to get a new one about 2 years ago. A lot of the buginess could have been the IT stuff that gets put on top of Windows and stuff, but man, the experience of using it sucked. It had 32GB and a big SSD too.
My current work laptop is pretty nice and doesn't bog down at all. It's a much more capable than my MBA, but my wife's M4 Mac mini runs circles around it, so I'm thinking a new MBA would run much better (and for a longer lifetime) than my current Dell. The only downside is that I like to have all of my photos on my laptop, so I need/want 2TB of storage and that would be really really out of my price range.
Your opinion might change if you had a 2016-2018 MacBook.