You get what you paid for is what ignorant people say about software. The entire software landscape is absolutely littered with very very expensive turds. Cost and quality don't seem to be terribly correlated.
Based on your vocabulary, I'm assuming you don't install Ubuntu using the network installer and expert mode, and then create your own desktop environment starting with a good window manager like i3. A person like you is definitely better off using macOS or Windows.
I'm not necessarily going to disagree with this - I switched from desktop Ubuntu to Mac and have hardly looked back because I really don't miss constantly dicking around with config files playing UI glitch whack-a-mole. Mac UI certainly has its own healthy share of warts - in fact I find it practically unusable without Divvy and Moom, for starters - but on the whole it's polished, functional, aesthetically pleasing, and usually doesn't get in the way of doing work. Those are all very important qualities to me as someone who spends a non-trivial amount of time doing things outside of a terminal.
Just because I'm capable of rolling my own desktop environment doesn't mean I want to or that it's a particularly good use of my time, and I imagine a lot of potential/would-be Linux users probably feel the same way. Being dismissive of that perspective is counterproductive if you believe that the world would be better off with more FOSS usage (as I do).
"Rolling your own desktop environment" takes all of a few hours. I'm pretty sure you made as much of an investment learning tools for your new mac when you bought it.