A useful analogy seems to preserve the relationship that matters while discarding the ones that do not.

That suggests a test: after hearing the analogy, can someone correctly predict something about the original subject? If not, perhaps the analogy is decorative rather than explanatory.