> Graphene OS has a duress password and PIN, which “will irreversibly wipe the device (along with any installed eSIMs) once entered anywhere where the device credentials are requested.”
iOS kinda also offers such a solution, though a bit more suspicious to perform: "Erase all data on this iPhone after 10 failed passcode attempts"