"Do the job" depends a lot on what the facts are. Unfortunately, unless you were actually there, you can't know perfectly.
It's a matrix: a perfect system would always punish the guilty and refuse to punish the innocent.
Without perfect information, you have to choose: will you bias the outcome punish the innocent, or to not punish the guilty?