Apple stuff lasts me longer than any other computers I've purchased in my life. The Mac had a bit of a dark age in the late 2010s but barring that, I think it's incorrect to say Apple products are unreliable.
I bought a late-2013 13" MacBook Pro when I started university and I used that thing up until the end of 2021 when I got a 14" M1 Pro MBP. And it wasn't even because it was performing that terribly, I just wanted the new Apple silicon machine. Now it's ~4.5 years later and that machine runs like it did on day 1 and I have no desire to upgrade anytime soon.
I bought a late-2013 13" MacBook Pro when I started university and I used that thing up until the end of 2021 when I got a 14" M1 Pro MBP. And it wasn't even because it was performing that terribly, I just wanted the new Apple silicon machine. Now it's ~4.5 years later and that machine runs like it did on day 1 and I have no desire to upgrade anytime soon.