> The problem seems to be that we have unjust laws and punishments. We should have some way to apply mercy in that case.

The solution is to fix that and make it retroactive. Remove the unjust law and release anyone who was convicted for violating it.

A pardon is just a bad, unfair bandaid fix.