Peer Review seems like a system designed to encourage group think.
The findings of Copernicus that the Earth rotated around the sun instead of vice versa would not pass peer review. Nor would Louis Pasteur's Germ Theory.
For all the flaws of academic publishing, we are still in a much better place than when church dogma was the gatekeeper of knowledge.
There are some situations where peer review has led to groupthink. The one that comes to mind is the amyloid hypothesis. [1]
[0] https://theconversation.com/hate-the-peer-review-process-ein...
[1] https://www.science.org/content/article/potential-fabricatio...