There's a book, So You've Been Publicly Shamed, that investigates a few cases of internet lynch mobs, and the history of shaming as punishment.
The book's conclusion (as I recall) is that shaming is far more cruel than we commonly think, and shaming used to be more common until people realized its cruelty.
I think there is a stark contrast between something like a digital lynch mob and disassociation. The latter is simply doing things like not interacting with people whose behavior you find egregious.
The book covers that form of shaming too, in the context of close-knit towns in the last few centuries. But it's been too long since I read the book to discuss that in detail.
The book's conclusion (as I recall) is that shaming is far more cruel than we commonly think, and shaming used to be more common until people realized its cruelty.