A warehouse or factory would have more jobs, but would also bring massive truck loads to the local roads and corresponding pollution. The low staffing of datacenters means that one they are built there is little transportation impact.
It would add low value-added jobs though (unskilled labor). Datacenters add high value-added jobs (skilled labor).
Only looking at the headcount is shortsighted imho.
The highest skill job an AI datacenter adds locally is electrician or climate technician. And not many of those.