This is a terrible sentiment and it needs to stop spreading with these articles about Nobel rejections.
Noticing that your data is in conflict with theory is the best way of realizing that you have made a mistake. Go back to your analysis and work through it until you realize what you did wrong. If you can't find the mistake, then share it with your colleagues/PI, and get them to tell you what you did wrong. If all of their ideas don't explain your result, then you may have found an interesting finding, but you should probably triple check your work and then try to reproduce the finding in new data.
But it is a systemic failure that biologists broadly rejected a result out of hand that had been successfully replicated many times, at multiple labs, over decades. And the attitude that you describe is part of why it happened.
Data that does not fit in existing paradigms should be scrutinized with extra care, not rejected out of hand.
This is an extreme example of that, and should stand as a cautionary tale that data should be believed especially when it is in conflict with theory. Rather than being rejected and ignored.