There are actually computer programs that can draw the most compact set of districts based solely on where people live without any regard to their race or political persuasion or anything else, simply upon where people live.
This would be the most honest, unbiased way to do it, so we know it will never happen.
With today’s computer technology, that’s exactly what should be done. If that happened, there would still be some areas which would lean to one party or the other. But if computer generated, then nobody could complain that a partisan human being drew the district lines.