A Criterion to Compare Mechanisms When Solutions Are Not Unique, with Applications to Constrained School Choice