First a disclaimer. I am writing from my perspective. What I say will be pretty subjective. I am not trying to represent everyone, but simply give you my view on things from using Windows, macOS, and Linux all on a daily basis for a couple years.
I have several computers: Two PC's, two laptops, two tablets, one phone, and a handful SBC's. Mainly, though, this is my lineup: PC runs Linux, macbook air runs macOS, and my microsoft surface runs Windows. I don't consider myself a stalwart supporter of any OS, and although I believe in free software, I don't avoid proprietary software that's simply better. I use what's best for what I'm doing at any particular time.
I use my PC/Linux for most of my development. I use my macbook air for my iOS development and for a lot of school work, and I use my microsoft surface go 3 when reading online (the touchscreen is great for it), and because I like having a dedicated Windows machine. I do have an iPad mini too, but Windows 11 is, for me, a much better touchscreen OS than iPad OS. If I want to do phone-like things, I'll use my iPhone, not my iPad.
I keep my configurations very vanilla; you won't find anything more than brew on macOS, WSL on Windows, or a mostly standard Fedora/Ubuntu flavor on either of my computers at any given time. Partly, this is because I don't try to make something into what it's not, but use the tool that fits best for each job.
If I were to choose a single OS for a laptop that I were to use for web programming (emphasis on web) and general computing (by which I take that it'll be my daily driver), I would honestly go for macOS on a M1 macbook air. M2 is definitely on my radar, but I have a budget and I don't see the performance improvements as worth the extra cost, at least for me and right now. My current M1 is plenty fast, and I plan on using it for at least five more years.
However, Windows 11 wouldn't be a terrible option either. A Microsoft Surface Go Laptop has the aesthetics of a Macbook Air, very decent performance and battery life, and a nice touchscreen. Windows 11, although it doesn't have the ecosystem compatibility of macOS, is a big improvement over Windows 10 (in my opinion) in many areas:
- Prettier UI (subjective, but arguably a much better touchscreen experience)
- Performance improvements (not necessarily in specific benchmarks, but the OS feels more snappy than Windows 10)
- WSL 2 gives you all the command-line power of Linux, without the distro-wars and continuous UI refactoring (because, for me at least, I found that macOS and Windows just had the best UI)
And honestly, on Windows, web development is going to be pretty easy. You'll get to choose from almost every IDE out there, although my recommendations would be VS Code or WebStorm. You should run node/npm under WSL, where those are a breeze and provide an awesome dev experience. Docker can be run fine on Windows without the need for WSL.
Any things I'll miss from Linux on Windows 11? Not really, if I was just doing web dev and daily driving. WSL provides 90% of Linux's usefulness to me underneath Windows 11, whose UI I don't feel the need to tweak as constantly as GNOME/KDE/LXDE.
Any things I'll miss from macOS on Windows 11? Yeah, I'd totally miss the integrated iCloud experience with my iPhone. However, I honestly primarily rely on Photos and Calendar the most, and I'm 100% sure you can offer a very similar integration between your laptop and phone if you use Google Calendar and Photos. Windows Calendar can connect to Google Calendar, which you can also connect to your iPhone's Calendar, and Google Photos has an iOS app and Google Drive works well on Windows. So although that integration will take a _little_ bit of effort to set up, it's still largely available.
In the end, Windows 11 wouldn't be a bad choice. You can totally dual-boot with Linux, which is a big advantage, and you get a much wider choice of hardware. Like I said above, a Microsoft Surface Laptop Go would probably be my choice, however the Framework Laptop is also a very attractive option or a StarLabs StarBook.
Economically-wise, a decent Windows 11 laptop will probably cost you as much as a M1 macbook air. I personally like to save money, and so I buy used off of eBay, where I've generally always had a good experience.
In the end, it's up to you. I hope my perspective has been useful, and that you may be helped by relating to a couple of my observations.