We're not talking about the same adversaries here. If the police unlock people's phone by pointing it at their face it'll be done with impunity and in a widespread manner. Less so if they start cutting off fingers.
This is not the case, at least, the law is not very settled in that direction. There has been at least one famous case [0] where an appeals court found that a defendant could be help in contempt of court and imprisoned for refusing to provide his password.
[0] https://www.theregister.com/2017/03/20/appeals_court_contemp...