التَّشْبِيهُ وَافِيًا بِإِفَادَةِ مَا عُلِّقَ بِهِ مِنَ الْغَرَضِ
The comparison should adequately convey the purpose assigned to it.
A shared property is not sufficient unless the figure also serves its intended rhetorical goal. A lion may be suitable when the aim is to convey courage, but using the same image to suggest gentleness would normally be a poor fit.
Different intentions can require different borrowed images. The quality of a metaphor must therefore be tested against its subject, context, and purpose rather than the isolated appeal of its wording.