Unless I’ve misunderstood something, this is incorrect. According to this October article Tesla has produced 20 million of their own battery cells at their Texas gigafactory:
https://electrek.co/2023/10/11/tesla-4680-battery-cell-produ...
And their first gigafactory in Nevada as far as I know has been producing cells for years. I suspect they stopped buying cells from Panasonic years ago.