Flatness Is a Criterion for Selection of Maximizing Measures