I mean you can break Windows enough to have to debug it every five minutes, too, that would also be frustrating.
For the average user who isn’t tinkering with everything Linux is a pretty smooth and pleasant experience.
Also I’m not mystified by Windows’ market dominance, but we all know the reason isn’t because it simply provides a better experience. Most Windows users have no choice in the matter as it’s just the default.
Also software availability doesn’t have much to do with the OS. It’s a reason I don’t use Linux more, but it’s not something the OS does poorly. It’s something software developers do poorly.