The much more likely hypothesis in my view is that he was helping Trump because of personal conviction (only in small parts motivated by naked self-interest).
You should expect rational billionaires to tend politically right out of pure self-interest and distorted perspective alone; because the universal thing that such parties reliably do when in power is cutting tax burden on the top end.
Sending a bunch of scriptkiddies around and having them cut government funding and gut agencies is not really how you make evidence "vanish", how would that even work?
And, lastly, jumping in front of an audience at every opportunity and running your mouth is the absolute last thing anyone would ever do if the goal was to avoid prosection. But it is perfectly in line with a person that has a very big ego and wants to achieve political goals.
Look at the things he’s already been in court for: labor and environmental violations, safety problems. A really big one for him is the exposure to suits over his statements as the CEO of a public company: anyone who’s bought TSLA in the the last decade or so could, for example, claim that he was knowingly misleading investors about FSD’s readiness or safety record.
Each of those are areas where he absolutely does not want someone with government investigatory powers talking to his employees, demanding internal documents, etc. and in several of them he could have business activities blocked if, for example, they linked approvals to more comprehensive evidence (imagine if they couldn’t sell FSD for use on public roads until it was safer and had to compensate past buyers).