After the wipe it will boot to recovery as it can't access any data and then reset OS. After that it boots into the GrapheneOS setup wizard.
To flash to another OS or stock OS, make sure to enable OEM unlocking on the fresh GrapheneOS install after the duress happens.