So what happens to people who eat ham, for example?
What happens to people who eat ham? They enjoy it.
Swine are unclean creatures because they do not ruminate. Their flesh defiles and contaminates the mind.
This is just a metaphorical reference to people who do not ruminate, think deeply, and just swallow any kind of garbage, teaching, belief system, ideology, sales pitch, or religion without thinking deeply about it at all..
If you swallow the teachings of people who do not ruminate, think deeply, it will defile and contaminate your mind and you will become an unclean creature that cannot ruminate, think deeply.
Here is the wisdom of God. This is my flesh.