Gravitational waves show black holes prefer certain masses before they collide