A simile requires the two terms to be identical in every feature.

Ilm al-Bayan and Simile: Definition, Elements, Terms and Particles