I have not read the full details, but if the device was under government control, then was it a federal agent who typed in the code.
If the owner of the phone did not put in the code, then he didnâ(TM)t destroy anything. The government agentâ(TM)s incompetence destroyed the evidence. This would be akin to a DEA agent flushing a toilet holding suspected drugs. Ok, I will grant you that itâ(TM)s more like the toilet being rigged to flush if the lid is lifted without the seat as well. Itâ(TM)s not the expected action, but the agent would be causing the destruction and not the accused.
Stupid agent should know that a person who cannot be compelled to give up their access code might give up another code instead. The most they can reasonably win with is that the person lied. And youâ(TM)d need to see exactly what was said. A clever person can give a code without saying it is the unlock code. For example, in desperation after interrogation just spouting out a series of numbers. Never said it was the right code.