I've not used macs for a few years, but has homebrew become a lot better then? Because my recollection of it is that it worked fine for small sets of well-maintained packages, but it's much, much slower than the linux package managers, and there were tons of compatibility issues once you even slightly left the beaten path. Also, I remember fighting with many apple CLI tools; they seemed to be wildly out of date with the comparable linux tooling, to the point that you sometimes needed to homebrew something technically already part of the base OS just to get other things working (e.g. IIRC bash)
Incidentally, on windows there are the beginnings of package managers nowadays, e.g. chocolatey. They're nothing like as good as those in linux, but better than nothing. Chocolatey's focus isn't quite the same as homebrew, however, so they're not strictly comparable.