Maybe. Things that succeed in the face of an issue no one predicted don't really stand out as smart - just lucky.
It might prove smart in the long run for many other reasons of course.
For all we know, Tesla could be locked into TSMC like everyone else, while Nvidia has their current high-end chips on Samsung as well relationships with TSMC.
The beauty of luck is that it can be used practically any time as explanation for success. Tesla bet big on vertical integration. Who knows what they took into consideration but it was surely bold since they were not as flush with cash as they are now.
For all we know, Tesla could be locked into TSMC like everyone else, while Nvidia has their current high-end chips on Samsung as well relationships with TSMC.