Apparently Elon Musk is building the biggest and most advanced chip plant in the work in Texas for $20Bn
Firstly, Terafab is a partnership with Intel. Secondly, it will neither be the biggest nor the most advanced chip factory when it opens. There are grand plans to make it huge eventually, but Elon's grand factory plans rarely reach full fruition. Tesla's Gigafactory Nevada was planned to be enormous originally, but only a fraction (about 1/3) of the original plan has actually been built. At Gigafactory Texas, the factory building is enormous but must be pretty empty inside because it's only reached a fraction of its planned production capacity.
Yes, it sounds like Terafab is going to be experimenting with new fabrication technologies, which I guess is where the "most advanced" claim comes from. But that means it will be very limited in production volume initially. New technology in chip manufacturing rarely works out well the first time - something that Intel knows very well!
Apple is crazy not to do the same... they have the money, and they need the chips... what's keeping them?
It takes many, many years to build up the knowledge for advanced chip fabrication, and it's extremely capital-intensive. China has been trying for years and still hasn't caught up with TSMC, Samsung, or even Intel for that matter. Elon can take a punt on it because he has virtually no risk aversion and totally dominates the boards of his companies. But for a public company with good governance like Apple, it's much more difficult to commit serious capital to such a risky gamble.
Plus, the current AI boom and semiconductor shortage is obviously spurring a massive increase in capital spending on fab plants anyway. This should benefit Apple in the coming years when there will likely be an excess capacity of advanced chip production, so Apple can play off the fabs against each other to get the best deals on capacity at the most advanced fabs.