Feel like this something similar can be accomplished for Macs using AirTags/Apple Watch proximity to do specific actions via Shortcuts App, instead of just locking/erasing remotely using 'Find My'.
It wouldn't surprise me if Apple imports more emergency wipe features into macOS from iOS.