Their battery factory is Tesla's primary competitive advantage. They are far ahead of almost any other manufacturer in terms of battery chemistry (<3% cobalt [0], less lithium, etc) and battery pack manufacturing (first to do thermal management -> long battery life).