The OS is running on “native” hardware, which makes it impeccably optimized for almost any use, including running Web apps.
It’s really a matter of personal preference. Most developers would say Linux, since most servers worldwide are based on Linux OS.
It was considered limiting for a long time, but Microsoft added Powershell and Linux Bash Shell to their Windows 10 OS, which significantly improves the OS’s coding utility.