>The cells that Tesla users for their battery packs are commodity products
Not in the volumes Tesla will require over the next decade. I have a hunch that every EV manufacturer that tries to get serious about volume production (> 1 million vehicles per year, say) will hit a brick wall of supply shortage. There either won't be enough cell production capacity available, or competing manufacturers will bid it up enough to seriously impact the profitability of the vehicles.
Until EVs are established as the obviously best alternative for most vehicles, global production capacity will lag to the degree that in-house battery cell production is a necessary strategic advantage.
Add that to the fact that the ~90% efficiency of electric drivetrains makes single-digit improvements in component properties hugely impactful on the economics of the final product, and battery cells seems like something that should mainly not be outsourced.