The hope that Tesla will be the leading EV company in a future dominated by electric cars drove a spectacular eight-fold rally in the shares in 2020, earning its place in the S&P 500 and at one point making it the fifth-most valuable stock in the gauge.