It is an interesting defence of a position to note that people only really turn to it when they are emotionally vulnerable and their mental faculties are at their weakest. It’s scarcely a clarion defence of the benefits or religious observance or practice.  It is no doubt true that when we need an explanation for the apparently inexplicable- the death of a child, say- there is more comfort to be found in the ministrations of a cleric than that of a statistician. However that in no way makes the cleric, or their creed, right.  The cold hard truth is that personal and national tragedies do have logical explanations, it just happens that we may not want to hear them at the time. However, any other credo which used other peoples emotional weaknesses to push their view of the world and the universe would be treated with contempt. For some reason, religion gets a pass.