I met people on both sides that had either of those attitudes.
The "I'm always right because I have a PHD" is not uncommon, even on fields not covered by their education.
At the same time, I've met many religious people (Muslims, Hindus, Christians) that for them religion was a private, personal aspect that helped them deal with their lives.
As a kind of a routine, something done time and time again enough to clear up their minds from stress and give them an anchor when lost.
I'm not religious, but I believe in freedom and the pursuit of happiness, and I support anyone as long as it doesn't interfere with other's.