"Not hanging out with someone" is the very definition of shunning, public or otherwise.
Why is firing a different matter? If I'm an employer in an at will state, I most certainly can fire someone who's not a member of a protected group, like atheists, say.
Let's say I read paleontology for fun. Can I avoid Young Earth Creationists socially, or am I shunning them?