What Mac are you going to use the installer on?
If it is a Mac that shipped with El Capitan, use the internet recovery only requires you format the drive with Disk Utility.
If it is a Mac that shipped with less than El Capitan but more Lion or later, the App Store lets you install it via these directions:
https://support.apple.com/en-us/HT211683
If it is a Mac that shipped with Snow Leopard (pre-July 22, 2011), but after March 10, 2010, that's where it becomes difficult, because then you will need a Mac with 10.6.8 on it to clone over target disc mode, given the license.
https://discussions.apple.com/docs/DOC-250003506 explains in more detail
There is no reason to get the M1 Mac involved. As long as your Mac is El Capitan compatible, it has the capability to get it restored.