The characteristics that Moon and Mercury are not sharing is dense metallic core.
The density of substance is its mass per unit volume.
The Moon's core is primarily made of liquid iron. Mercury consist of approximately 70% metallic and 30% silicate material.