Removing a body part is also an effective way to get a pass code or pattern. If someone is willing to do you great harm to unlock your phone, I don't think it matters much what locking method you use.
The jurisdictions where a cop will with force put your finger to the fingerprint reader, but won't beat the keys out of you cover most of the first and parts of the second world.
And if you are not in one of those countries just politely ask for a blank white sheet of paper to sign and let them fill the rest. You will save everyone some time.
I would not necessarily trust that. Had an army coworker who regularly beat information out with rubber hoses where he was stationed. Sort of the evil version of don’t ask don’t tell.
People without safety and security awareness often underestimate a) time, b) the neccessary criminal energy, c) opportunity, and d) logistics (e. g. seclusion, tools).
But when one has technology that works for the attacker by conveniently elimininating the mentioned problems almost completely, than your set of security features is just a pathetic lie... as well as a self-delusion.
Which, to be honest, a lot of safety and security measures and technology are to most people. ;)
And if you are not in one of those countries just politely ask for a blank white sheet of paper to sign and let them fill the rest. You will save everyone some time.