You're not comparing humans to humans. You're comparing cows to (say) chickens. The underlying assumption then is that chickens and cows share the same experience of pain. That's not proven, seems unlikely to be the case, and is, in any case, currently unmeasurable.