Euthanasia and factory farming are apples and oranges. Cows can live up to 20 years, but are often killed at 18-24 months. They aren't killed with euthanasia, but panicked and terrified, with bolts to the skull and slit throats, right after seeing several other cows killed that way. Their lives before that are often miserable to keep costs down.
Is that the least cruel option?