is idiom and metaphor the same?
Short answer, yes, by definition. An idiom is a phrase whose meaning cannot be established from the combination of its individual words, usually by repeated use in other contexts. A metaphor, or more generally a figure of speech, is a nonliteral way of understanding a phrase (for metaphor, by analogy).