The condemnation of Galileo for teaching heliocentrism by the Catholic Church is often used by evolutionists and old-earth creationists to attack the scientific methodology of young-earth creationism. They argue that just as the Catholic Church at that time wrongly condemned Galileo because they interpreted the Bible to teach geocentrism, young-earth creationists wrongly condemn evolution and billions of years in the face of overwhelming evidence because they too have misinterpreted the Bible. Therefore, they argue that young-earth creationists must reinterpret the Bible in light of the scientific evidence just as the Catholic Church had to reinterpret the Bible in light of Galileo’s findings.
But it is actually the young-earth creationists, not the evolutionists or old-earth creationists, who are represented by Galileo. The reason the Catholic Church rejected Galileo’s findings was because they were contrary to the predominant scientific theory of the day: geocentrism. The church leaders were listening to the voices of the leading scientists and theologians of their day who disagreed with Galileo. Their theologians interpreted the Bible to teach geocentrism because the early church fathers taught geocentrism which they inherited from the teaching of Greek philosophers. They came to the wrong conclusion because they were attempting to interpret the Bible through the teachings of fallible human scientists and philosophers.
So likewise, evolution and the belief that the universe is billions of years old are the predominant scientific theories of today just as geocentrism was the predominant scientific theory then. The Catholic Church interpreted the Bible in light of the prevailing scientific theory of the day just as they do today. But it is absolutely impossible to reconcile the Bible with evolution or even with billions of years.
When young-earth creationists bring up scientific evidence in favor of their view, they are dismissed and treated like scientific heretics (as Galileo was) for opposing the prevailing consensus. As Galileo was condemned in the court of public opinion for his theories because they were outside of the scientific consensus, young-earth creationists are dismissed a priori because their beliefs entail the truth of Christianity which secular scientists do not want to believe in.