Shunning used as official discipline for breaking the rules is what cults do as part of their information control policy to keep people under the thumb.
Deciding personally to not hang out with a certain individual for whatever reason is personal choice.