If they're going to physically threaten you into unlocking your phone, a PIN or passcode won't change that.
On the other side burglars can get into a house and force people to unlock their phones or reveal their passwords, if they care to. There is no protection against that unless those people value their secrets more than the harm the burglars will do to them.
All considered, I unlock with my fingerprints.