Friend told me that the Catholic Church changes its mind whenever there is a scietnfici discovery

My friend told me that the reason he doesnt like Christianity specifically Catholicism is because he believes their beliefs are inconsistent and that whenver theres a new scientific discovery the Catholic Church conveniently changes its opinion on that specific subject. Thoughts?