IF you have a different Mac, you can use it to download MacOS install image, then interrupt the process and create a BOOTABLE USB-stick Installer/Utilities stick. BOOTABLE is key, because the way you will install from this USB-Stick is to BOOT the USB-stick, and use its Utilities to ERASE your drive and start the Installer. here is the article on bootable USB-Stick Utilities/Installer:
What you need to create a bootable installer
• A USB flash drive or other secondary volume formatted as GUID partition Map, Mac OS Extended, with at least 14GB of available storage
• A downloaded installer for macOS Big Sur, Catalina, Mojave, High Sierra, or El Capitan.
The Terminal command assumes that Installer in located in the /Applications folder.
from:
How to create a bootable installer for macOS
Create a bootable installer for macOS - Apple Support
NB>> if you name your incoming USB stick exactly MyVolume, you can copy and paste the very long Terminal command from the article directly into the Terminal window, without having to change anything.
10.11 El Capitan is a recommended waypoint, even if you expect to install a later version. 10.11 allows encrypted Internet connections and Mac App Store access. That makes getting later versions much easier.