GrapheneOS provides users with the ability to set a duress PIN/Password that will irreversibly wipe the device (along with any installed eSIMs) once entered anywhere where the device credentials are requested (on the lockscreen, along with any such prompt in the OS).
The wipe does not require a reboot and cannot be interrupted. It can be set up at Settings > Security > Duress Password in the owner profile. Both a duress PIN and password will need to be set to account for different profiles that may have different unlock methods.
Note that if the duress PIN/Password is the same as the actual unlock method, the actual unlock method always takes precedence, and therefore no wipe will occur.
If i was you, i would buy a Google Pixel 8 (8a is cheaper than 8 and 8 pro). They all provide support for GrapheneOS, have 7 years of updates, MTE, and so on
For context: https://grapheneos.org/faq#device-support
My daily driver is a 7a, my older 3a is the experiment and learn phone