Feel like you only received half of, possible good, advice:
I used 'two years, up or out', in my career. Who cares if you work somewhere for a longer period of time as long you keep progressing in all the various metrics of career progression?
It's when things become stale that out is a good idea
Tbh, these days WSL2 might be slightly better than macOS at being Linux. As it is Linux (in a very transparent vm) instead of posix or *nix
But for most dev work all three are good options. I've noticed that once you start deploying against stuff like kubernetes or, less so, doing docker stuff you run into limitations on Mac and wsl2. Just random weirdness, especially with new the m1 chips and say cockroachdb. At that point there's no substitute for the real thing :)