Automakers are replacing decades of know-how with strategies from Tesla’s playbook