Usually the latter comes down to the company having group-policies, or mandatory compliance software managed centrally.
Sometimes I've picked Linux and had to jump through hoops installing anti-virus, or other similar things.
Given the choice I'd pick Linux every time, but if that's not an option and I want the job then Mac is a good fallback. I'd rather quit my job - and have done so - than run Windows.