It’s a crapshoot. I had a 2009 iMac until it was stolen in 2020 - had the HDD replaced a couple of times (famously faulty Seagate series), but otherwise perfect.
Bought a brand new M1 MBP December 2020, hardly used it for about a year, when finally got around to wanting to use it after a year, it developed a “possessed” keyboard - basically it would persistently and randomly insert the “1” numeral when typing and when not typing (f.ex. when streaming video), it would trigger it randomly with zero input from me. Took it in twice to Apple Store; they reinstalled the OS, didn’t help the issue, cleaned under the keyboard (was clean anyway, as was very lightly used), finally replaced the “1” key. Nothing helped. Since it wasn’t under warranty anymore (I didn’t buy AC+), they wanted $600 to replace the keyboard. I traded it back to them for $600 credit instead and bought a new M2 15” MBA 16/1instead last month, hope to have better luck this time (and I bought AC+ too, lol).
Opinions differ on reliability. Apple may be more reliable than some random PC brand, but look up Luis Rossman on yt, who ran a very highly regarded independent Apple repair business and he has a very dim view of Apple reliability and persistent unaddressed design flaws. Fanbois called him a hater, but he demonstrated with hardware indisputable severe flaws that Apple just keep ignoring for multiple years and generations of products.
It’s a crapshoot. I had great experiences (also an early white iBook that just wouldn’t quit!), but in the last few years also a streak of failures of every single Apple product I bought brand new - the MBP, the iPad Air 3 that developed an unresponsive screen and other unfixable issues, iPhone with bulging battery not once but three times. Now bought brand new iPhone, brand new MBA, brand new Mac Mini, brand new iPad 10, all just last month and this month. We’ll see if I have better luck this time. And I got AC+ for all of them just in case.
The most that I can offer is to wish you the best of luck with your MBP, and may you have smooth sailing and favorable winds. YMMV.