More efficient symmetry breaking check.