Tesla Inc. stock rallied toward a record Thursday on the heels of an upgrade by analysts at RBC Capital and heightened hopes for EV makers.