[P]eople are often mistaken about where they fall on the spectrum from conventional- to independent-minded. Conventional-minded people don't like to think of themselves as conventional-minded. And in any case, it genuinely feels to them as if they make up their own minds about everything. It's just a coincidence that their beliefs are identical to their peers'. And the independent-minded, meanwhile, are often unaware how different their ideas are from conventional ones, at least till they state them publicly.
By the time they reach adulthood, most people know roughly how smart they are (in the narrow sense of ability to solve pre-set problems), because they're constantly being tested and ranked according to it. But schools generally ignore independent-mindedness, except to the extent they try to suppress it. So we don't get anything like the same kind of feedback about how independent-minded we are.
There may even be a phenomenon like Dunning-Kruger at work, where the most conventional-minded people are confident that they're independent-minded, while the genuinely independent-minded worry they might not be independent-minded enough.
―How to Think for Yourself by Paul Graham
This is easy: if you are saying or doing something transgressive you'll be shunned or attacked in some manner for it. The more transgressive, the greater the pushback will be.
Unless you're specifically stealthing or greymanning, and doing so well, people will socially clock you way before any cognitive element kicks in. If you stand next to someone weird then the odds of you being ostracised go up. They generally won't even know what's happening within themselves, just that you are outside acceptable parameters for the group.