I am not a lawyer, always consult with a lawyer in your local jurisdiction.
I believe giving a duress password to the police, which destroys data, will definitely be a crime, destruction of evidence at the minimum. Or obstruction.
I'm all for having a duress code, I just want to be clear about the trade-offs