Stock price is forward looking, not based on current sales. It's why some start-up with $0 revenue can be worth billions.
Not to say that Telsa's peak valuation is justified (it doesn't make a lot of sense), but a much higher market cap could be justified by expectation of substantial growth in Tesla sales, but flat revenue for Mercedes.