(How do you tell the difference? Well, as in this case, usually people leave some sort of evidence, and the legal system has a process for demanding evidence and evaluating it. It's not perfect, but it's certainly not unenforceable.)
I'm in a similar situation, actually. I had a trooper lie in court and even admit to it in the complaint investigation, but the investigator (another trooper) said it must be a misunderstanding. I'm curious how intentionally lying to cover up your mistake (exculpatory evidence) is a misunderstanding as a civil rights violation under Brady v MD, but I also don't want to get 'suicided'.
The part which is subjective is deputized to instructors, and one can shop around for a willing one.
The moral hazard you're alluding to is completely absent.