Recently I asked a question on our main site: Proper salutation in email for requesting a resource.
Today, it has been closed as a duplicate to another question: How should I phrase an important question that I need to ask a professor?
One can observe that answer of latter also answers the former question.
But, the intention of the both questions are different. Former is asking only for salutation and the later is regarding phrasing an important question to professor.
If there is a question A asked with intention X, got answers that also contain answer for question B asked with intention Y.
Can the question B be closed as duplicate of A even-though the intentions X and Y differ?