Musk may be an incredible prick on Twitter and be a terrible boss to get orders from, his vision gave us Tesla and Space X, both ground breaking and needed developments. He is a man of vision, not a manager or people person. And his vision is limited to technology, not economics or politics. But if you're that rich, you can come to think that you know it all.
While Tesla existed before Musk joined it, it also had zero sales — Musk was part of the series A funding in 2004, their first public prototype was 2006, Eberhard was asked to step down in 2007 and did so Jan 2008, the first actual delivery Feb 2008 — and also electric cars were a joke at the point Musk invested in Tesla (the hype was hydrogen and ethanol to be the green fuels of the future). As 99.7% of the market cap gain happened since 2010, and therefore under Musk’s leadership, I definitely count Musk as more relevant than Eberhard (although even then, organisation and salesmanship is not enough by itself, but I’m not going to get sidetracked here into means of production).
SpaceX, however, I believe was literally founded by Musk.
Pretty sure Elon founded SpaceX himself. If you have a good source for the claim that it existed before he came along, you should take the matter up with Wikipedia.