That would work for a 1 GW data center, during the day, without clouds, during the summer.
A decade old Reddit thread estimated there are 60 square miles of just McDonalds. That is, a McDonalds footprint of solar panels alone is 39GW.
https://www.reddit.com/r/theydidthemath/comments/2bq7l2/so_i...
Theoretically you can put as many batteries together but it'd be enormously expensive and run into the same supply chain issues.
~1600 GWh of lithium batteries are produced each year and hundreds of GWh/year of production capacity have been added in each of the last few years, so ~12 GWh isn't going to upend the market.
The competition isn't the cost of generators, it's the cost of grid power, or the cost of operating gas generators every day.