Mismatch repair inhibits homeologous recombination via coordinated directional unwinding of trapped DNA structures.