Which of the following is the best definition of an analogy

An analogy is a comparison between two things that are typically unrelated, in which one thing is used to explain or illustrate the other.