Apologies if I did a bad job explaining my opinion. But I was attempting to argue the exact opposite of that.
My view is that science should be the search for truth. And that if the truth is inconvenient for some political (or other) reason, so bet it. The truth is the goal. Full stop.
My feeling is that if scientists stop pursuing truth in cases where it doesn't fit their politics, they will (rightly, IMHO) lose the trust of the public. (Of course, in particular, those in the public who have different politics.)