The newer apartments and house I’ve lived in as an adult have been decent in that regard, probably because they’re closer to being up to spec electrically and have newer lines running to them thanks to being in urban areas, but one of my childhood homes out in the countryside which is now approaching a century in age had a “habit” of killing computers every so often.
And if you have appliances/computers die, you should get your electricity monitored to see if it's out of bounds.
In fact, anytime an appliance dies you should do a post-mortem to try to identify if something about the house may have contributed to it (hard water, electrical spikes, etc).
IMO, most "failures" are from failure to replace relays and door seals.
And same in experience. At large, the doors that are getting opened and closed repeatedly by my kids are far far more likely to get broken than any others. Which leads to door seals that are not up to where they should be. And will not surprise me that we run those compressors harder than we would otherwise. Which will lead to those failing.
The impact of surprises… bad components, variances in operational conditions, etc can have a big impact. Also, the quality improvements that emissions controls had on cars didn’t happen for white goods. Cars were hit with emissions AND safety standards, which raised prices.
For appliances instead they incentivize things like all electronic controls (more prone to failure with rough service or high heat), and undersizing components. Old appliances were all mechanical and easily fixed, the electronics tend to turnover quickly and are difficult or impossible to get from a 3rd party.