In MATLAB the OLS solution to the $y = X \beta + \epsilon$ can be calculated by
(X'*X) \ (X'*y)
but it seems
X \ y is also a least squares solution.
What is the difference between the two? If any? Basically is there a point to use the first option as it is likely to be slower?