Tesla has had a turbulent year, but others in the sector have been more resilient