Never use biometrics to lock anything. You can be forced to push a finger to a sensor, or your head forcibly held still for a facial scan.
Only use passwords/passcords. only they are secure against this totalitarian bullshit.
They'll still put you in jail on fake charges if you refuse to give your passcode, but at least your datas safe and now your case is unlawful imprisonment instead of relying on octogenarian judges thinking its okay to force compliance with a biometric.
If we're talking about a situation where they can just straight up beat you legally until you give them a passcode, then what's on your phone likely doesn't make a difference in the outcome.