Algebraic varieties vs differentiable manifolds in statistical models