It wasn't his intent when he posted about wanting to buy the company, but after the SEC forced him to buy, and once he formed a coalition to buy it, the plan became to kill the business off with a leveraged buyout.
Make no mistake, Twitter isn't dying because of Musk's mismanagement, it's dying because it was saddled with $13bn of debt that it could never have hoped to pay back. The mismanagement is just a show to provide deniability.
That isn't to say that Musk is some kind of genius, just that he's a clown playing his role.