It's pretty much this reason that I started running Linux in a VM for my development work, and use macOS for everything else. macOS is fundamentally just a better ecosystem in my opinion for everything it caters to - that is, I actively use an iPhone, Apple Watch, iPad, and Macbook. I use a lot of apps that sync seamlessly between each other and simply run best on macOS (or only run on macOS).
However, I've been burned _1000_ too many times for almost all of my development work (the sole exceptions have been Go and Java). But writing Python was a nightmare, last I checked (although this was prior to the full deprecation of Python2). Since then, I run an easily repeatable, tight-knit developer VM that I ssh into (or run graphical if absolutely necessary, like to handle oauth flows), and I literally do not notice any difference. It's as if it were native macOS (with the exception that I'm not running shared folders, so some files don't exist as far as Finder is concerned).
These error conditions are where operating systems differ so greatly from each other. On one end of the spectrum you have open source operating systems. When you encounter some error condition, you spend your time researching solutions. In the extreme, you modify whatever isn't working to your tastes on your own. On the other end of the spectrum you have fully locked down operating systems like iOS. Here when something goes wrong, you instead decide how to adapt your use of the device to avoid whatever issue you encountered.
What happens when things go wrong is what drives me to one OS or another, and is usually what is relevant in these discussions.