Statistically Near-Optimal Hypothesis Selection