If you are reading this and you want to truly restore the internal drive to factory original state minus wear and you have a Macbook that is able to boot a Linux from USB:
If you have nvme storage use blkdiscard to wipe it:
Adding on to this: blkdiscard should work fine for SATA or NVMe drives, if you just want to make the drive blank. SATA drives technically have the option of ignoring TRIM commands, but I'm not sure it was ever actually common for them to do so.
Suspending and waking a PC to unlock a drive can be necessary for SATA or NVMe drives. SATA drives also give you the alternative of hot-swapping the drive, but that's not practical for consumer NVMe drives or consumer host systems.
If you have nvme storage use blkdiscard to wipe it:
https://man7.org/linux/man-pages/man8/blkdiscard.8.html
Or
nvme format <device> with the --ses option, see available ses options here:
https://www.mankier.com/1/nvme-format
Otherwise use ATA Secure Erase with the suspend trick to unfreeze the drive:
https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase