I think that depends how much build-out you have to do in order to install the kind of capacity required for a $40B semiconductor fab, which would hypothetically need some kind of major energy storage infrastructure or backup source in the event that solar is the main source of electricity.
> Large semiconductor fabs use as much as 100 megawatt-hours of power each
hour, which is more than many automotive plants or oil refineries do. [0]
If a fab is running at that consumption rate for twenty hours every day for one year, it will consume approximately all of Arizona's 735,000 MWh of annual utility-scale solar, wind, and geothermal net electricity generation. [1]
Contrast that with the annual hydroelectric generation of Itaipu Dam in South America, at 79,440,000 MWh in 2019. [2]
[0] https://www.mckinsey.com/~/media/mckinsey/dotcom/client_serv... [pdf]
[1] https://www.eia.gov/state/print.php?sid=AZ
[2] https://www.power-technology.com/projects/itaipu-hydroelectr...