Certain legends about science have rightly been exposed as illusions, but that does not mean that there cannot be a more nuanced view of science as a social enterprise which in a cumulative way extends our knowledge of the world. Downplaying the cognitive pretensions of science makes life too easy for religious believers. It suggests that one doesn't need to pay attention to the challenges due to scientific insights regarding reality and human nature. Neither shall you bear false witness against your neighbour. For a false witness of the credibility of scientific insights can be abused to keep substantial insights at bay.
Religions have their origins in human cultural prehistory.
Science, mathematics, ethics and precision technologies, too, have their social histories. However, it is not sufficient to claim credibility for the cognitive, metaphysical or affective claims of the religious enterprise by analogy with the cognitive credibility of the scientific enterprise or the standing of mathematics or morality. This would be a me too argument. In my opinion, the case has to be made separately for each enterprise, since each developed in its own way, with significant aspects reinforced on the basis of the particular roles played by that particular enterprise. Neither shall you claim your neighbour's credibility, and that of his laboratories, his fieldwork, his calculations, his instruments, and anything that is your neighbour's.