I also disagree with this. This implicitly assumes that anyone who makes big changes that are painful will be successful. But this is manifestly untrue.
A big difference in what Jobs did and what Musk is doing is that Musk has fired people at Twitter pretty much indiscriminately. Jobs had a clear idea for a working product line. He brought NeXTSTEP with him to Apple, along with NeXT engineers. And he kept those teams that worked in critical areas.