In this interview, K. S. Bhagawan quotes Swami Vivekananda as saying whenever there's a conflict between the two, science takes precedence over religion.
Why should developing a spirit of inquiry be seen as going against a particular people or religion? It’s not so. Scientific inquiry is essential for everyone. Swami Vivekananda said nearly 125 years ago, "If there is anything against science, it is not religion. And you should reject it." He had a great scientific outlook and I look upon him as a spiritual mentor.
Did Vivekananda really say so (or something to that effect)?