Tesla's case is different. It's been widely speculated and with good reason that "getting rid of 10% of the workforce" and "everyone back to the office or they will be considered having abandoned their jobs and fired" are strongly connected.
It worked beautifully.