 Freerange milk production does not avoid very much of this. Ideally, it involves less pain and suffering but it typically involves forced impregnation, separation of mother and calf, and an early death, typically in an industrial slaughterhouse. So far as arguments against raising cows for meat on the basis that doing so kills them and makes them suffer are plausible, so are analogous arguments against raising cows for dairy.