Note the restriction: you can only do this to a non-encrypted APFS volume.
On Intel, I’ve successfully done it the other way: install macOS on to a volume, then clone the Data volume over it. But I don’t know if that will work with Apple Silicon, where you get into the issue of “ownership” of the startup volume.