Darwin and his successors have railed against the fallacy of confusing the current utility of a trait with the reason the trait evolved. For example, Darwin argued that skull sutures in mammals did not evolve because they facilitate live birth; the sutures were in place well before live birth evolved. Checking the chronological order in which different traits evolved in a lineage is one way to test an adaptive hypothesis; the fact of common ancestry is what makes that checking possible.
Elliott SoberThis is not to deny that there are versions of theism that do conflict with evolutionary biology. Young Earth Creationism is an example; it claims that God created life on earth within the past 10,000 to 50,000 years. But other types of theism are different.
Elliott SoberJust as thought experiments can't show that vitalism is true (or that it is false), they also can't show that dualism is true (or that it is false).
Elliott Sober