> Nerds were often seen as poorly social since "logic and reasoning" would go against socially accepted norms. This where the fedora tipping meme comes from: "everybody understands that religion is not literal, but we have to all accept the lie for social cohesion". But "nerds" would be the ones willing to take the ridicule and ostracism because truth would be more important than conformity.
I don't think nerds are/were seen as poorly social because logic and reasoning go against social norms. I'll bite on the religion focus. If everyone understands religion is not literal, being smirk about taking it literally is not logical or reasoning or making anyone look smarter. It just makes you look like a dork. Subtext and not being meant to read literally are a core part of social interaction.
I see the same in school, when some overly literal students argue about the interpretation of a book they are assigned to read. "the author can't possible mean that" or "show me where it says that on the page" is a common lazy criticism with little value. Some people are just like that, and (warning: personal observation) nerds tend to be a bit more like that. But the arguments I hear from that corner against religion are seldom great, they are just some minor gotchas.
I don't want to get into the whole religion debate, and I'll admit that there are also groups of Christians that take the bible very literally, as I'm sure there are for other religions as well. From what I can see, these don't make up the canon of religion, and I kind of believe they're mostly concentrated in North America, but that might be my skewed perspective.
It's quite sad that social mechanics in our society don't work well for some people, but that doesn't mean they don't exist and it doesn't make everyone except nerds "illogical".
If "everyone understands religion is not literal", why do so many people take it literally? You could just as sensibly flip the argument and argue that the garden-variety 'nerdy' atheist is talking literally about atheism but really doing negative theology ("your idea of God is totally wrong and does not exist, because the true God is necessarily inaccessible to human reason") but that would be silly and make you look like a dork too.