I think in both cases, people generally say "use Linux".
KDE is by far my preference and in general I don't think neither windows nor macos has fewer problems despite the price tag.
After hearing the "it just works" mantra of apple users for many years I was surprised to find I had at least as many glitches on the Mac as I did on KDE (win 7 was better, 10 has more problems ime).
(I use my computers for development and sysadmin, not gaming or art)