There is no research I’m aware of on people for whom the prospect of punishment did act as a deterrent (i.e. people who decided not to commit the crime).
So I argue that there is a very big selection bias in literature surrounding the effectiveness of punishment as a deterrent .