What is the difference between mercy and compassion?

The difference is the recipient. Compassion most often extends to others without regard to their moral performance. Mercy extends even to the vile.