Sample average approximation for model selection