Generally, attempting to justify mitzvot by portraying them as intended for physical or even spiritual benefit ultimately proves futile.
This does not mean that such a justification is necessarily unfounded, nor does it mean that one should argue the reverse, namely, that pig meat is actually better than cow meat, only that God, knowing how good it is, nevertheless prohibited it to us.
What it means is that this type of justification can never be the central consideration.
It is better simply to rely on God and not attempt to give explanations.
Rabbi Adin Steinsaltz