Now Linux is obviously a great OS for development, but there's so much misinfo here.
Other people (MacOS/Winblows) will spend a significant amount of time trying to emulate a Linux environment.
It's 2023, most shit is either platform-agnostic (Anything front-end, Java, etc) or runs in Docker nowadays. Or both. I run plenty of Java shit in Docker despite the fact that it'd run natively on any major desktop OS. It's easier to guarantee an environment in a container than get a bunch of Linux users to agree on an environment. Otherwise you get one dev with Java 8 as default as per company spec and then another with Java 17 because some tool they use requires it and they're too lazy to set 8 as the default and invoke 17 specially for that use case.
Matter of fact, I know most companies I know people at, either use Macbooks or give you a choice.
Does it really take a significant amount of time trying to emulate a Linux environment? Eh, I suppose. I first install brew and THEN install docker. Whereas on Linux, I'd just use the distro's built-in package manager to install docker, because everything gets deployed in containers for k8s anyway, so why would I run it without docker locally and complicate things?
Linux is the correct (and only) choice for programmers
Also, funnily enough, according to the latest Stack Overflow survey, Windows is actually the most popular OS among developers. Probably because of all the ancient legacy win32 shit. MacOS is second, but if Linux wasn't split into different distros, it would likely be second (multiple choice survey, so y'know, can't just add them together linearly), but it'd be a close call anyway.
99.9% of the internet runs on Linux. When you get a job, you’ll most likely deploy to Linux servers
This part is technically true (I believe the real number is closer to 96%, with Windows Server and FreeBSD accounting for the rest), but it's highly irrelevant because most modern backend applications run on multiple layers of abstraction to the point where it doesn't matter if the development takes place in Windows, Linux or MacOS.
At the end of the day, I want my dev machines to always work, so they're Macs. My personal desktop is mostly used for gaming and tinkering, so it doesn't matter if I fuck something up and have downtime. That runs on Gentoo. That said, OP is a student and should use Linux precisely because they can probably afford the downtime so what better time to tinker? But for work, reliable and polished > tinkering and infinite customizability.> 99.9% of the internet runs on Linux. When you get a job, you’ll most likely deploy to Linux servers