The simple advantage in perceptual and categorical generalization