I dont think this is entirely true. Maybe not the first wave of data centers, but there are a lot of factors that go into the cost calc and its possible that it would still be worth it to build them even if taxed.
About a decade ago, a bunch of data center companies got fantastic deals with my city (low/no tax). People are pretty upset about it. A few years in there was a report on how many people they employeed. I think combined it was under 10 who lived in the area.
The community is a heck of a lot poorer now because they were convinced to offer incentives for a factory that never came. Once these firms can dangle hope in return for tax treatment or infrastructure, then you have a zero-sum game between townships where the winner — if there is a winner — ends up being the firm first, and the loser — if there is a loser, will be the township first.
there are real competitive differences to locations and the best locations will likely be able to afford to tax. lets say they all go solar power, then places that are good for solar and it doesnt snow or have as many cloudy days relative to other places will be able to tax more than other places and possibly still have it be the most economical choice.
They also cant build them all in the same spot or move them that easily after they are built. It might be smarter to agree to be taxed and have an amicable relationship with the community you build the data center in rather than risk them changing the law after its already built because youre screwing them over.
The cynicism of residents is reasonable. They've have to be highly educated to actually understand the implications of what they're doing and how that revenue can be distributed. America's decline lends itself toward small-town corruption, where patronage is more important than communitarianism, due to large and accelerating net worth inequality, and an economy where outcomes are based on inheritance over labor.
This explains the logic behind an outright ban. You don't have to be vigilant about corruption and the principle-agent problem if the thing is just banned.