By that logic it's always fine for companies to get around labour protections.
Yes, it would be better if they hired no-one. When your job conditions are beneath human dignity, you don't get to hire people for that job, even if that means your stock price doesn't grow quite as much and GDP is lower this year.