Honestly, you can't really go wrong either way these days, but i've been really happy with the Mac route. Most CS programs are totally fine with macOS since its Unix-based under the hood, making things like terminal work and setting up compilers way smoother than Windows used to be. I've found it much easier than messing with environment variables on a PC.
- Apple MacBook Air M2 13-inch 16GB RAM 512GB SSD: This is my daily driver and I have zero complaints. The battery life is actually insane and easily gets me through three labs without hunting for a plug. Just make sure you get 16GB of RAM because you cant upgrade it later and 8GB is pushing it once you start running Docker or heavy IDEs.
- Dell XPS 13 9315 i7-1250U 16GB RAM 512GB SSD: If you really want Windows for those specific VM labs or just prefer the ecosystem, this works well too. Its super portable and handles Linux distros like a champ if you decide to dual boot or use WSL2. The VM concern is kinda overblown because most unis provide a remote server or VDI for the one or two classes that need a specific Windows environment anyway. I went with the Mac and honestly dont regret it one bit, especially for the screen quality. Just stick to 16GB RAM regardless of which one you pick and youll be set for all four years.