Imagine the pope being a man of science a couple of hundred years back... How much better the world could be.
the catholic church has traditionally been pro-science, the contrast with science is a modern development. There's a ton of Catholic clergy who were scientists[0], many of those well known (Mersenne, Mendel, Copernicus, Venturi etc).
Even the epitome of the science-church conflict, the Galileo story, started from a scientific disagreement before the religious one[1].
[0] https://en.wikipedia.org/wiki/Marin_Mersenne
[0] https://tofspot.blogspot.com/2013/08/the-great-ptolemaic-sma...
How much better?
Every honest description of Catholic Church, as any institution of this size and history, needs to be very nuanced. One of such nuances is a fact that it was one of the main, and sometimes strictly main, supporters and drivers of education and scientific progress. Other such nuance is that it very often punished and persecuted attempts to bring education and scientific progress.
Both views of the Church are true. That's what nuance is.
They often were. A lot of history has been retold more in a way to fit contemporary narrative than to maintain historical accuracy. For instance Galileo. The typical tale is something like Galileo dared claim the Earth is not the center of the universe, the Church freaked out at the violation of dogma, shunned him, and he was lucky to escape with his life. In reality the Pope was one of Galileo's biggest supporters and patrons. But they disagreed on heliocentrism vs geocentricism.
The Pope encouraged Galileo to write a book about the issue and cover both sides in neutrality. Galileo did write a book, but was rather on the Asperger's side of social behavior, and decided to frame the geocentric position (which aligned with the Pope) as idiotic, defended by an idiot - named Simplicio no less, and presented weak and easily dismantled arguments. The Pope took it as a personal insult, which it was, and the rest is history.
And notably Galileo's theory was, in general, weak. Amongst many other issues he continued to assume perfectly circular orbits which threw everything else off and required endless epicycles and the like. So his theory was still very much in the domain of philosophy rather than observable/provable science or even a clear improvement, so he was just generally acting like an antagonistic ass to a person who had supported him endlessly. And as it turns out even the Pope is quite human.
A lot of very bad things were historically done by men of science
The Catholic Church was funding a lot of research for a long time. E.g the Elon Musk of his time, Galileo, was famously sponsored by it and when asked to contrast his theories against the established view, sperged out so hard against the people tasked with reviewing his publications, they tossed him under the carriage.
You mean during the Napoleonic wars? Science was already fully embraced by then. Or do you think the Austrians and the French were casting spells against each other instead of firing cannon?
I don’t know about popes, but many prominent mathematicians, philosophers and early scientists were priests or monks: Mendel, Copernicus, Bayes, Ockham, Bolzano... It was pretty much the only way to get the kind of education, intellectual culture, time and focus required for hundreds of years (at least in Europe), until the upper-middle class widened around the enlightenment and industrial revolution.
The friction between the church and science is a relatively new phenomenon, at least at the current scale. There are always exceptions like Galileo, but it took science a long time to start answering (and contradicting) some of the key questions about our world and where we come from that religion addresses.