Differentiable rigidity and Ricci curvature