This is yesterday's news. Destroying evidence is a crime in a lot of jurisdictions. With that in mind, I don't understand how somebody who apparently uses Graphene OS didn't bring an empty burner when crossing one of the most notorious borders in the world.
Which isn't to say that the laws that require you to unlock your phone and that throw you in jail if you securely wipe it aren't hostile and inhumane.