I think your Mac is having a fit where it displays the devices (physical drive & partitions/containers & volumes) out of order. I've seen this occur a few times with my organization's Macs and it can be a pain to resolve. If you look closely at the last screenshot, the last most item for the internal drive is showing "Apple SSD AP02" which is usually what is shown for the physical drive.
I think the easiest way forward is one of two options.
While booted into Recovery Mode launch the Terminal app from the Utilities menu on the menu bar. Then issue the following commands to unmount all volumes & to write zeroes to the beginning of the SSD in order to destroy the current partition table. This is sometimes necessary when Disk Utility gets confused. Just make sure to disconnect all external devices first so that you do not accidentally erase the wrong drive. Also make sure to confirm the current device identifier for the internal physical drive before using these commands. In your last screenshots the physical SSD appears to have the device identifier of "disk0", but this identifier can change everytime you boot the computer.
Unmount all volumes on drive you wish to erase (confirm the current device identifier first and replace "diskX" in my examples with the correct current device identifier such as "disk0" as shown in the screenshots):
diskutil unmountDisk diskX
Write zeroes to beginning of the drive you wish to erase:
dd if=/dev/zero of=/dev/diskX bs=100m count=10
After this is done without any error messages, then you should be able to quit the Terminal app and relaunch Disk Utility to properly erase the internal SSD as GUID partition and the file system compatible with the OS you are reinstalling. For macOS 10.12 it would be MacOS Extended (Journaled), or for macOS 10.13+ it would be APFS (top option).
Second option would be to perform a DFU firmware Restore using another Mac which will erase the contents of the internal SSD. Afterwards you would need to boot a macOS installer (Internet Recovery Mode Command + Option + R) or possibly a bootable macOS USB installer.