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.