You don't need to invert the matrix. You want to solve X' X Beta = X' Y for Beta. Computationally, it is faster to solve the equations one by one.
https://www.johndcook.com/blog/2010/01/19/dont-invert-that-m...
https://www.johndcook.com/blog/2010/01/19/dont-invert-that-m...
Obviously, any solution you get solves the normal equation so it’s unclear what the parent comment meant by using the normal equation is superior to SGD.
If it’s the gradient, doesn’t it have the real gradient in expectation, so you can run as many iterations to get epsilon precision up to what your machine will support?
I’m not too familiar with CG. What clues you in that he’s thinking more CG than SGD?