Try booting into Internet Recovery Mode using Command + Option + R to attempt to access the online macOS 12.x Monterey installer. Unfortunately some Macs will only boot to the online installer for the OS which originally shipped with the computer from the factory regardless of the startup keys used.
In order to create a bootable macOS USB installer will require access to another compatible working Mac from 2007 to mid-2021. Which bootable macOS USB installer you can create with the other compatible Mac depends on its exact model. Generally you need:
- macOS 12.x -- a Mac from 2015 to mid-2021
- macOS 10.15 -- a Mac from 2012 to mid-2020
- macOS 10.13 -- a Mac from Late-2009 to mid-2018
- macOS 10.11 -- a Mac from 2007 to 2015
You can use the information in the following article to confirm which versions of macOS are compatible with various Apple hardware.....the other compatible Mac can currently be running any version of macOS:
https://eshop.macsales.com/guides/Mac_OS_X_Compatibility
If the internal SSD is a third party SSD, then you will only be able to install macOS 10.13+ to the internal SSD since older versions of macOS don't have the necessary NMVe driver needed for third party SSDs.
If the internal SSD is an original Apple OEM SSD and you are booting to a macOS 10.10 or 10.11 installer, then it won't be able to recognize the drive layout used by later versions of macOS. You will first need to re-partition & reformat the SSD so that these older versions of macOS can be installed to the SSD.
With macOS 10.10 Yosemite, you will need to follow the instructions in the following article to partition & format the physical SSD prior to being able to install Yosemite to it:
https://eshop.macsales.com/manuals/mac-formatting-guide-legacy-covers-disk-utility-for-os-x-10-6-10-10
For macOS 10.11 you will need to use Disk Utility to erase the whole physical SSD as GUID partition and MacOS Extended (Journaled).