

Eh, that is one explanation, but pigs are only slightly worse than other domestic animals, which also have parasites and whose meat would spoil. The other and I think more likely explanation is formalizing differences between themselves from other ethnic groups in the region and making that division explicit. The early precursors to Israelites and Judeans were inland in the hills and shepherds, and were defining themselves against the more urban and coastal Philistines and other Phoenecian peoples. Pigs are preferred by more dense populations since they can be kept in a pen and don’t have to move around to graze, and the coastal element is why there is also prohibitions against shellfish.
Yeah, it is a prohibition on willingly eating pork. But to Islamaphobes this gets twisted into some belief that any presence, contact, or image of pork products hurts and condemns Muslims (I have heard this referred to as “Christian Ham Magic”, which I think is a good term for it). Like how soldiers were claiming they dip their bullets in bacon grease so that if they kill a Muslim with them, they would, by “Muslim” belief, go to hell.