Does this actually prevent forensics from finding any data?
No. If you do this as part of a legal search and they catch on you're now in a lot more trouble and you've caught their attention.
That way you aren't doing anything, it's their act of arresting you or sneezing your device that causes the destruction. If they want to keep the evidence they have no choice but to keep the device in your possession.