To be honest, whenever any religion fails to answer a question, it is said that God works in mysterious ways that our mind cannot comprehend.
Then again, when religion says something but is considered unethical in modern times, you'll be advised to use your aql as the scriptures are not to be taken literally but understand the context.
And when, religion does co incides with logic, then you will hear that, religion is basically the mother of science and whatever science has brought to mankind, religion has shown that long ago.
And when you have to forcefully impose a view, you can use "those are written in the holy book. You can't change the words nor the meaning of it."
.... Which again contradicts the second point that was mentioned above.
As an atheist, I believe that religion is a great weapon to manipulate the common mass by using different logic(?) at different times at your own convenience.