Nobody defending Elon's management decisions should ever be in charge of people.
If you fire people for disagreeing, you surround yourself with yes-men and liars.
If you evaluate software engineers on lines of code, you'll reward inefficiency and code bloat.
If you push people to work 12 hours a day, work quality will suffer and turnover will (quite rightly!) be huge.
This is going exactly as badly as he deserves.