The bigger factors are whether the large media players back you (Murdoch, Musk), whether social media personalities back you, and whether the foreign intelligence agencies back you in their spamouflage and information ops (e.g. via the Internet Research Agency).
Twitter's takeover also helped him get a number of loyalist goons that he sent out to various US federal agencies to extract data from.
He could have gained valuable information and he certainly got to exact petty revenge on regulators that crossed him, but I'd have a hard time putting a higher valuation on that than the tangible revenue drops of some of his businesses, not to mention risk of repercussions. I also think Trump is remarkably easy to get close to for someone with Elon's money,came and social circles whilst spending a lot less, especially if he's offering unqualified endorsement. Don't forget DOGE was launched as a collab with a relatively minor Silicon Valley player whose other claim to fame was running against Trump...
It wasn't good for the company but allowed Musk huge influence in politics and likely making it out with some really juicy data.