This doesn't address the fact that pigs are no less capable of experiencing pain and distress than dogs and cats. And most people in western cultures would not be okay with killing dogs and cats that are not being useful to them. So even though the cognitive dissonance and the framework that sustains it is well understood (look up carnism), it's still pretty strange when you stop to think about it.