And another vs that is personal, and thus unanswerable. Although I can say that since Microsoft added subsystem for Linux in Windows, I couldn't care less about using either Windows, Linux or macOS. They all have the terminals and they're all excellent.
My personal choise: a solid Windows laptop is much cheaper than a Macbook Pro, thus easy an easy one.
I use both regularly.
OSX: better support/compatibility in the web dev ecosystem. If you need to use Sketch or build iOS stuff you have no real choice, you have to have a Mac. Downside: more expensive, need to run a VM to test IE/Edge, most people don't like the current laptop keyboards, you often need to buy a range of little apps to set things up as you really want.
Win10+WSL: generally more affordable, no need for a VM to test IE/Edge - everything is in one place, fine if you need Figma instead of Sketch. Downside: WSL is slower than a native shell (although WSL2 may well fix that), can't test Safari, tend to run into compatibility issues (usually just irritating stuff).
If all else is equal; go with the Mac. If you don't want to spend that much, you'll be ok with a Windows PC.
I'm not a macOS user but I have a good idea why some developers are using it. Main reason would be because mac is overall more responsive, faster than windows and uses bash instead of cmd. windows still has its own advantages too, it's has a bigger community so you get a bigger help when in trouble, it has all kinds of programs to install (both official and none-official), gaming on macOS is pretty bad unlike windows, AND its a lot cheaper, the price you pay for a mid-spec macOS would get you a high-spec windows PC
MacOS has a lot of momentum still because for the longest time it was the only way to get a dependable, attractive Unix OS on a desktop/laptop. At the time, most web development tools and server applications were built with Linux & Unix in mind, so it made Macs more attractive to people who worked with that stuff every day.
Today, most of those programs can run on Windows, and Cygwin brings many favorite Unix command line utilities to the platform. WSL is a game changer, but I often found the separation between the Windows & Linux sides to be too painful & just used native Windows functionality.
With Mac hardware issues lately, especially MacBook Pro keyboard problems, I'm seeing web developers switching to Microsoft Surface hardware or a decent laptop running Linux. My work makes me use a MacBook Pro, but I have a souped-up 12" Dell running KDE Neon and a Surface Book for my personal use.
Use what you're comfortable with. Use what excites you. There's so little difference between platforms these days. Enjoy it.