The amount of cattle required to maintain pasture is way fewer than we have right now. From a CO2 perspective factory farmed cattle tends to look a little better than "free-range" mostly due to reduced land use changes (but it is obviously worse from a cruelty perspective). Finally, we can still have farm animals without eating them!!