I remember back in my college days, there was a theory floating around that Mercury might actually be the core of a Neptune size gas giant that got too close to the sun and had all it’s gas stripped away, the theory came from the fact the Mercury is much denser than any of the other terrestrial planets which could only be explained if it was formed under much greater pressure.
Makes sense.