Here's something AI would actually be good for. Feed it the nation's population information, with home addresses, but nothing about party affiliation, race, age, religion, wealth, or anything else. Tell it:
DRAW COMPACT ELECTORAL DISTRICTS
Everyone knows this would be fair. How did we stray so far from anything like it?