Comparing Classes of Estimators: When does Gradient Descent Beat Ridge Regression in Linear Models?