It would depend on precisely what the ask was. Did the officer ask, "Give me the pin to unlock the phone."? In that case the command was complied with.
Not really, no. I think it would be extremely hard to convince any jury that you really believed that a PIN that wipes the phone was what the officer was asking for.
Even if the prompt was vague like "what's the pin for the phone", you'd be hard pressed to convince a judge that a duress pin (to wipe the phone) is a reasonable person[1] interpretation.
[1] https://en.wikipedia.org/wiki/Reasonable_person