I believe there are heinous crimes that do. Both fitting the crime and as a deterrent.
Do you have any sources supporting the claim that does actually deter anybody?
With that said, I don't think it's true that the US has, per capita, significantly more violent crime than the median Western country. What we have is a LOT more guns, which increase the probability that our violent crime becomes lethal.
We DO have vastly more incarceration than most other countries, though.