Instead of trying to do a better job drawing congressional districts, I propose we eliminate the concept entirely.
Members of the House of Representatives should be elected at large, with proportional representation based on the percentage of votes received.
No more gerrymandering, no more “safe seats”, every vote matters because even a small party (e.g. Green, Libertarian) can possibly muster enough votes to get one representative in a state with a good sized delegation.