Even assuming that Galileo could not prove beyond reasonable doubt heliocentrism as a physical model, and that the Church accepted that the Ptolemaic model wasn't valid - the Church took an active part in asserting that "heliocentrism is heresy". They could have said it's not their own matter to pontificate about and they instead went after Galileo asserting that he overstepped his boundaries.
It's very possible that Galileo (and the stories about him in later epochs) was not 100% in his assertions and his arguments. And it's important to look at the history from an objective point of view. However if you look at it as a battle for freedom to do experiment-based research, yes, the church was evil at that time.