In this 2009 blog articlethis 2009 blog article, Jeff Atwood wrote :
As I see it, there are three classes of duplicate questions, from most clear to least clear.
Cut-and-paste duplicate questions. These questions are the very definition of exact duplicates; [...]
Accidental duplicates. These questions aren't copy and paste, but they cover the exact same ground as an earlier Stack Overflow question. The overlap is not ambiguous; [...]
Borderline duplicates. These questions are ambiguous; they're in the same ballpark as a previous question, but have subtle differences that may make them legitimately standalone questions. These are subject to interpretation. We rely on Stack Overflow users to tag these questions appropriately so they naturally "group" with the questions they're related to. [...] There's often benefit to having multiple subtle variants of a question around, as people tend to ask and search using completely different words, and the better our coverage, the better odds our fellow programmers can find the answer they're looking for.
I believe the use case you're talking about qualifies as borderline duplicate
questions. For more details on what's the proper way to deal with borderline duplicates, see Answering “borderline duplicate” questions.