Firstly, assume innocent intent. Perhaps your phrasing is awkward, or you're too wordy, or your speaking above the OP's head, etc.. And, unless it's a copy/past job, leave open the possibility that the user's restatement may actually be better: It may make more sense than your "original" to other visitors in the same predicament.
Your ego aside, we want better answers. Even if they're derivatives.
If you're pretty sure they just copied your answer in an attempt to steal credit or undermine the system, go ahead and flag and/or downvote it. Probably avoid answering that user's future questions.
But, if there's some variation in the answer, the "better" answer will likely receive more votes. If yours did, don't fuss over it. Lesser answers often elevate better ones. If yours get fewer votes, maybe it wasn't clear, or it was too verbose, or was in some other way not as good as the OP's restatement of your answer. Figure out why and do better next time.
Secondly, don't take it personally. Don't dwell on it. Move on.
In your particular case, I don't sense foul play. I sense the OP really needed to work through it to understand it. That said, you still have more votes. So ... definitely just get over it.