This isn't true for iOS at least. You can include device erase capabilities in the MDM profile without enrolling as a managed device.