It also depends on the brand. I regret getting a Samsung for my area because if it breaks, then I am screwed. A key criteria for me now is the bias towards simple things that have operational support from the community.
I specifically paid more for Whirlpool laundry appliances recently (over Samsung or LG) for this exact reason. I know that spare parts are available online and even locally, and many of the repairs are things I can even do myself (as I did with my previous Whirlpool top loader).
It seems like Whirlpool and Maytag have long histories of repair and general reliability (at least as far as their marketing and the zeitgeist go), so I wonder what's different about them vs Samsung or LG (maybe it's a tech vs mechanical approach to the problem? I know Chevy vehicles through the 50's-70's used a very limited and common set of parts on everything from the drive train to the car frame, whereas modern companies wish to optimize and reduce costs while innovating).
I have no idea about the modern front loaders, but when I had to repair my old top loader, it was all parts that seem to be standard across dozens of models for many years— the clutch assembly, agitator cogs, gearbox, pump, etc.
a lack of, and the people that do repair things don't like them. It's like picking a programming language, and you have to pick your stuff based on the available market.