I think what this comes down to is the age-old adage: With power comes responsibility. If you've got that gold badge, you've got to be really careful when you come across a great question that you're all juiced up to compose a scintillatingly good answer to. But if it might be a dup, you've really got to slow down and consider that possibility first, lest your new, scintillatingly good answer turn into an albatross.
Full disclosure: I've done precisely what Jörg describes, several times. Sometimes I didn't realize there was a dup, or forgot to check, or checked only superficially. Sometimes I wanted to give the OP a tailored answer, while also permanently redirecting to the canonical dup for the full story.
But this always felt a little sketchy, and I've since learned that, indeed, answering and then closing-as-dup is definitely frowned upon, because of the selfish impression it gives.
In fact, I confess that once or twice, before I knew better, I did the seemingly-selfish thing, but with a twist: although I was definitely trying to shut out other answerers, it wasn't because I wanted all the rep points for myself. (I truly didn't care.) No, my thinking was just that I wanted to give the OP a high-quality, more tailored answer than I knew was available at the dup, but I wanted to head off all the low-quality or downright wrong answers I knew the question would otherwise attract.
But! I now know that was wrong, and I definitely don't do that any more, and I've settled on a compromise: If I really want to give the OP a "tailored answer", while also closing as a dup, I'll instead give that "tailored answer" as a comment, where it can't be construed as a troll for extra points.
It may be useful to illustrate this with an example. Under the [c] tag, perhaps the most common question ever is variations on "I don't understand why the expression i = i++
didn't give me the answer I expected." We get these questions daily, and they're always immediately closed and redirected to the canonical dup. But the highest-voted answers at the canonical dup are hard reads, especially for beginners still learning the language, and who are the most likely to be asking the question in the first place. So I often like to give the OP a quick explanation of their specific issue, while also redirecting. (The most recent instance was just last night.) But this is also a class of questions where shutting out other answers with a quick close is also important, because we invariably get other helpful newbies popping up with their interpretations of what the problematic expression "should" yield.
(Before someone asks how the canonical dup in this case can be improved, so that people like me aren't forever induced to augment it with a "more-tailored answer": I've done that, but it will be a long time before that new answer has any hope of competing on points with the highest-voted answers.)