I hate to be "WELL AKSHULLY" guy, but I'm gonna have to be.
Galileo was right, but only by accident. Resistance to heliocentricism had almost nothing to do with religion, and everything to do with science. The best science of the day indicated that Galileo had gone way beyond the data they had available. Most SCIENTISTS thought heliocentricism was wrong, based largely on older Greek work that was entirely reasonable based on the then current data. It wasn't until better telescopes provided more accurate data that a serious case for heliocentricism could be made.
How this applies to our present situation is left as an exercise for the reader.