For things like off-topic, you might well know the answer and also vote to close, and also recommend migration to some other SE site for which you're familiar with the topic rules. Seems odd to say you shouldn't answer in that case, since the answer will migrate with the question, except if we say something like, "it's our purpose to dissuade people who post off-topic questions by denying them an answer, not our purpose to get question and answer to the right place".
I suppose you could try to follow the question to its new location and answer it there, but that sounds like hassle and SE didn't get where it is today by making it difficult to answer.
Disabling dupehammer (or putting up a dialogue saying "why are you being weird?") for people who've answered the question makes sense to me: they should instead put their answer on the question they're marking this a dupe of, shouldn't they? If their answers to the two questions are substantially different, maybe they shouldn't be marked as dupes.
However, even there I can see a case for doing it. "Dupe" is generally taken to include, "this question is a subset of that other question". There are probably cases where this question's answer only needs to be one tenth the size of the answers to the question it duplicates. The C++-FAQ essays spring to mind. So writing an answer with just the relevant part of the dupe-answer, might be more convenient than commenting to describe which part of the dupe-answer is relevant. I'd tend to settle for the comment, though, unless I'd already posted my answer before finding the dupe.
I've also occasionally wanted to hedge my bets. I'll vote to close, but if the community disagrees with me and thinks it's a fine question then OK, here's my answer. This probably happens less these days, though, since I'm more able to predict the community's opinion.
Closing bugs due to typos seem an obvious case as well where the question should be both answered and closed, quite reasonably by the same person. The solutions to such questions often fit in comments, so we could live without the ability to do both, but an answer's an answer.
In short: there are probably close reasons and situations where banning one person from doing both things makes sense. There are situations where it doesn't. So don't take a blunt instrument to a minor problem, but if there's dupehammer abuse then of course do something specifically about that.