This method doesn't seem to make a distinction on how to erase an Intel Mac with a rotary disk vs an SSD
Technically, it isn't "erasing" the disk, it's reformatting it. A reformatted RDHD might be recoverable, with some specific tools. A reformatted SSD cannot, due to the technology, although a forensic specialist could, I suppose, dump the contents and then try to reassemble it like a jigsaw puzzle, but that would be fabulously expensive and time consuming. And really all that needs to be done on an APFS drive is to encrypt it, then format it. The encryption will cover over the original data and the formatting will scramble the segments. Even if tools are used to un-scramble, all they get is encrypted segments.
With the new Apple Silicon Macs, it's even simpler. Just reformat. The contents of the storage are encrypted by default, with two keys if the user turns on File Vault, just one if not, but formatting destroys the keys, so the drive is unreadable.