In my opinion, if the answer answers your question, you should accept the answer, given that the answerer included proper attribution to the user who commented (if the context of the answer is the exact same as the comment).
Always remember: Comments are temporary, and even ones that answer a question won't guarantee to remain long enough for people who encounter the same problem in the future to see.
When no attribution is provided, you might also want to consider how the answerer might not have seen the comment, have been working on their answer before the comment, etc., meaning that they probably answered completely on their own.
P.S.
I often find myself working on a proper answer, and another user comments the answer (without the quality of what an answer-in-post should have, hence faster). It shouldn't, but it kind of makes me feel like I need to include a "Like perfectly pointed out by..." at the start of my answer...
Just a few days ago, a user called me "rep mining" for answering a question that had a "comment answer". Honestly, I didn't even see the comment when I posted.
Another time, after leaving a time gap in case the commenter decides to answer using the answer box, I transferred a comment into an answer box and provided proper attribution. But another user downvoted and said my answer belonged to the user who commented. Still, the OP later thanked me (and upvoted) for posting the answer, addressing that I provided proper attribution and didn't see why it got downvoted.