After spending years with the major OS families, I think that Linux is the only one which had the right ideas and was able to keep an efficient solution working for decades.
Brew and other MacOS package managers are a testament to this. Package managers crafted with care around the user needs is always going to be the way to go.
This highlights something that's been a creeping issue for at least a decade if not longer: both MacOS and Windows are not built around the user anymore, for different reasons.
Windows is easy to see, it is now an OS as a service where the user is exploited right below the comfort threshold that will make them abandon the system (although for many this threshold was crossed long ago).
For Apple it's not as immediately obvious, but their forced obsolescence through constantly shifting requirements and tooling means that nothing lasts very long in the Mac ecosystem, you always have to upgrade, as a consumer and as a developer, rebuild, refactor, push updates and eventually be forced to replace your hardware. So you are basically caught in a neverending game of catchup and Apple is always a step ahead of you, by design.
Booting up almost any flavor of Linux is just leagues ahead in terms of simply letting you use your computer tending to your needs.