I code on all three platforms but whatever I do I keep ending up in Linux just because it’s so more powerful and useful (but hard). Second best is macOS even though lately it’s been a suck fest. I have coded in Windows for Windows but it’s clunky, awkward and riddled with bad APIs. If you don’t want to know what a machine does or appropriate problems, chose Windows. Also it doesn’t give you the mechanical sympathy which Linux breathes. Linux is better if you want to run something with raw technologies. Sure it’s harder to learn, so macOS is a better starting point, if you can afford it.
Also I think Linux is a lot less opinionated than the others which means it’s easier to come up with your own ideas.