While rockets do need lots of energy to make thrust, and both companies are built around smart people there's really nothing else in common between SpaceX and Tesla. SpaceX is high-risk shipping, Tesla makes consumer goods. SpaceX makes vehicles with hydrocarbon propellants, the whole point of Tesla is to remove the hydrocarbons from vehicles. And there's no reason to put Tesla at risk if SpaceX runs into a string of bad luck.