Another factor to consider with cows is large scale cattle farming, grass fed or not, releases huge amounts of methane gas into the atmosphere. Methane gas is estimated to be 28[1] times worse for climate change than C02.
Grass fed is good and probably even healthier. But it is also considerably more expensive, and our ultimate capacity for production of grass fed is much lower than corn fed. So grass fed cannot really fully replace corn fed.