It is a very serious problem. All religions are a pest to mankind. Religion is the opium of people. Religion has done great harm to humanity during its history.
Let’s take an example. Religion pretended that a child born out of wedlock does not have any rights regarding the inheritance of his father’s wealth, because the child would be illegitimate since the father of such a child is not registered in any document as being the child’s father.