Sure, but getting those credits entails a much smaller group of people to avoid pissing off, and a much smaller corpus of regulation to avoid falling foul of.
A much (much) larger proportion of the hard work with Tesla was on vehicle development. Just look at the story of the development of the original roadster, which started out in concept as a modified Lotus Elise, but ended up being basically a completely reengineered car, and the reengineering was made that much more difficult by starting from an existing platform rather than from scratch with a clean slate.
With Twitter you have a clumsily handled set of layoffs, with lots of talk about Musk wanting to see code samples from engineers (and frankly way too much talk about Twitter's engineering in general), carried out in front of an already more-politicised-than-the-general-population userbase, features retired, introduced, withdrawn, etc., and in general lots of thrashing around. And all of this in view of an entire audience with a greater-than-the-general-population bias towards kicking off and taking matters viral.
Tesla started small: Twitter was already (relatively) a giant company with thousands of employees. It's just a fundamentally less "make it soable" situation than a small, primarily engineering focussed, car startup.