Duress PINs are a grey area, especially if you enter it as you are being compelled to unlock the device like he did. That will always be seen as destroying evidence. If you think your phone might be searched, wipe it well before you are told to unlock it and restore a backup later.