How is your password safe from someone threatening you with a lead pipe?
(Edit: I guess the latter is also doable via fingerprint if a different finger is used as the suicide pill, seems a bit risky for normal use though!)
By... rewriting or modding sudo AND the login screen of macOS? Doesn't seem like a realistic option.
I think that's far more important.