Both are solvable with politicians who can be held accountable. But, in many locations, they aren't accountable and can only be trusted to do what's in the interest of their largest donors.
That's all ignoring the various other externalities... aesthetics, noise, pollution.
But, 100%, if a county/town has an underutilized industrial zone, they should build data centers there. But, it also appears data center developers prefer undeveloped plots. Again, also solvable, but somebody needs to do so.