No, your flags were both reasonable. Don't stop flagging when you see something wrong!
In this particular case, I agree with you about the questions being duplicates. We are literally overflowing with flags on questions suggesting closure, and they just don't all get reviewed before they age away. So that doesn't necessarily mean that people disagreed this was a duplicate. I went ahead and marked it as a duplicate, so status-completed.
As far as the suspected code plagiarism, this is a tricky issue. Let me preface this by saying that I detest plagiarism, call it out often, and am a huge stickler for attribution. And also that I don't know what I would have done in this case, were I the moderator who handled that flag. But I cannot say that the moderator was incorrect in how (s)he chose to respond.
The two code snippets are very similar, but there's no real way to prove that Gerret copied the code from Pawel's answer. With a library, there are only a limited number of ways to do the same task. Pawel didn't invent something novel here, and Gerret could certainly have arrived at the same solution independently.
Since it is not a cut-and-dried issue of plagiarism, it would be wildly inappropriate to delete Gerret's answer outright. Beyond that, he clearly did make a couple of modifications to the code, tweaking it for his purposes, and that is perfectly acceptable. There are only two reasonable options as I see it:
Leave a comment on Gerret's answer, asking him if he adapted this code from what Pawel gave in his answer. The comment would remind him of the rules about attribution and gently suggest that he give credit where credit is due. This is appealing in theory, but probably not workable in practice, given that the answer is several years old now. If you want to do it, though, don't let me stop you.
Edit attribution directly into Gerret's answer. I was very tempted to do this, but backed off at the last minute for the above reasons—neither you nor I can actually prove that Gerret copied the code from Pawel's answer, and so to make a heavy-handed edit like that one would be putting words in his mouth.
Again, I'll reiterate that this is not a straightforward case. You were right to wonder, but ultimately I don't think it is a problem worth worrying about. Please don't stop flagging things that bristle your spidey-senses when you see them, though! There are plenty of cases of out-and-out plagiarism on Stack Overflow, and those deserve all of the flags they get. In my experience (and I have a fair amount of it), the moderators respond to these cases with swift and appropriate justice, so be reassured that your concerns are not falling upon deaf ears.