Excoriating people for objectionable opinions doesn’t change minds, it merely drives those thoughts underground away from the sunlight where they can be examined.
It’s like Dale Carnegie said: a drop of honey gathers more flies than a gallon of gall.