Shouldn't the second be marked as a duplicate?
In this specific case, the first question (together with its answers) is noticeably less clear and useful than the second one, and indeed it covers a strict subset of the latter. How would it help the site to close the second one as a duplicate of the first one?
On the other hand, I am bothered by the fact that the $1\to 2$ duplicate closure happened as a result of a unilateral action on the part of the author of the Q&A at the second question, which to my mind kind of over-steps what the dupehammer should be used for. A more appropriate course of action would have been to vote this into the closure queue and let the community decide, I should think.
Still, in this instance I agree with the closure, so I'm not throwing any stones.