It seems pretty obvious that punishment doesn’t work and it is a path to worse disasters for the whole society.
Specifically the comment author was insinuating that just by eradicating a group of individuals out of the society (as punishment) would stop other people to do the same. It seems a very dangerous way of thinking.