I'll agree that Macs have it pretty good, but to say 'Linux just works' with WiFi is a bold statement. Some Linux distributions work well, but when you have to fall back to the command prompt to do something as simple as connect to an enterprise WiFi network for a device as common as a raspberry pi [0] because there is no GUI, well.
I'll grant that at least the steps are moderately consistent.
Anecdotally, even on my Ubuntu laptop, at least once a year I lose WiFi and have to delve into some online forums to learn what just broke it.
I use both Linux (Ubuntu/Raspian) and Windows extensively and overall most things just work better on Windows, poor design philosophies aside.
[0] https://iceburn.medium.com/raspberry-pi-connected-to-wifi-of...