Don't mix up the people and what they do. It's the humans that have morals. Science is an indifferent tool. The methodology that includes fraud-detection isn't an imposition of morality on humans, it's an aspect of the knowledge-seeking in science. Fraud is made publicly known to safeguard knowledge, not to improve people's characters. If someone improves upon their character while they're in the lab or the field "doing science", that's their own private unscientific activity.
I would argue that while science and the scientific method do not
intend to tell people what to do, the transparency and public detection of fraud
does impose morality on people by having clear consequences. In many respects, that’s the only way morality works - by social pressure to do what is accepted. And science does this better than religion in a million ways because it has clear rules and very likely consequences. Scientists to act and react to the moral choices driven by the pressures of peer review.
Science does not decree morality in a vacuum. It
exposes morality and people adjust their behavior to exhibit that which is socially promoted. “Good Science” is a moral behavior just as obeying drunk driving laws.
Science doesn't make the people who do it more ethical people. Religion tries to and maybe some people use it for that successfully.
As for knowing what's real, that's where science shines.
I would further argue that Science
does make people more ethical.
“When we know better, we do better.”
Science provides knowledge of the consequences of actions; real consequences, not just making a god pissy. Science shows what littering does. Science shows what bullying does. Science can calculate the costs of shoplifting (and probe the motivations for it). Science shows the consequences for failing to husband our planet.
Oxford Languages said:
mor·al
/ˈmôrəl/
noun
plural noun: morals
1.
a lesson, especially one concerning what is right or prudent, that can be derived from a story, a piece of information, or an experience.
"the moral of this story was that one must see the beauty in what one has"
Similar: lesson, message, meaning, significance, signification, import, point, precept, teaching
2.
a person's standards of behavior or beliefs concerning what is and is not acceptable for them to do.
"the corruption of public morals"
Science has changed the social morals of our societies as it taught us about homosexuality, capital punishment, chain gangs, spousal abuse, the effects of welfare and food insecurity. Add species extinction, pollution, health practices and the moral behaviors associated with them.
Moreover, science
can learn, as the examples above demonstrate.
And therein lies its greatest advantage over religion, in either scientific fact, hypothesis or moral guidance.
Science can learn.
Religion - cannot. It has no mechanism whatsover to learn. Everything about it is written in stone and cannot be changed. No one (Christian) - no. one. - will tear out portions of their bible that are proven to be out of date. Like slavery. They will not change, they cannot.
So above and beyond science’s mechanism to detect fraud and deceit, science also has the mechanism to better itself. A mechanism to discover new information. A method. A path with built in checks against human nature along the way.
There is no comparison in which it is valid to say, “but science is just as bad,” because the existence of a method to learn and self-check makes that a lie.