I am looking at two methods only and considering the benefits to the person and the problem.
Revenge: this can be and usually is cathartic. Negative feelings about yourself and the world recede as you have taken action. You do not suffer a sense of victimhood, which may affect your view of yourself, internalising anger and creating self-harm and depression.
Forgiveness: this is passive. By forgiving the other person you resolve the negative effects in yourself and deal with the negative effects towards others. But.....
.....in the first you have not only dealt with the problem but also the repetition of problems. Nevertheless, employing say violence encourages violence, even if that violence is not directed against you. In the second you will likely or possibly remain the victim of further violence. In both instances forgiveness is possible but this works in different ways according to the action taken.