This happens all the time.
The problem (not the answer to the question) is this. Many SO posters are looking for quick points, they favour short quick answers, and get quite upset with anyone who sees the bigger picture, the deeper problem, and speaks to that.
Of course the best thing to do is answer the question and speak to the deeper problem.
For me, this is not an ambiguous issue: the question is usually "How do I fight this fire", often more than one question from the same poster. They are not duplicates, but the are the exact same fire in two or three different [code] locations. I answer the question and tell them the fire is a symptom, not the cause; then tell them how to deal with the cause so that they have less fires. That's my concept of "professional programmer".
But be prepared for the "community" to argue and fight in the commentary. They will even get into arguing definitions, etc. All of which indicate that they actually have no actual experience in the subject, they have just read a page somewhere on the web, and they are answering from that. They have not connected the symptom with the cause, and instead of asking a question, they use their powers and vote you down, for being off-topic or for connecting dots that they have not connected. The Piranha Effect. It is hard to do, because they attack your answer without understanding the deeper problem, or they attack your answer on an ostensibly "technical" basis, but ignore them.
About half the time the OP recognises that, yes, there is a deeper problem, your answer is a head and shoulders above the rest, and they comment to you only. That shuts the mob up, and they go elsewhere looking for churning water. Now you have an engagement, and you move ahead with just the OP. Point proved, but you get small points, hard won.
The other half of the time, the OP comments on every answer, either because they feel they should be polite or evaluate every answer or whatever. This gives the piranhas the "proof" that their mediocre answer was correct or had some value; that there absurd comments had some value, so the water keeps churning, and your points keep decreasing.
This is especially the case when one or two posters with high rep comment against your answer. Then you get mass hysteria and a lynch mob. The technical facts are ignored, everyone focuses on the one allegation, true or false, without any evidence, and the feeding frenzy begins. That is what people are really here for: emotional interaction and validation; the immediate feedback of their actions; that other (low tech) people think the same way. Sometimes your perfectly correct answer will get deleted.
The real problem is, in a community where there is no real authority, and the only credibility is based on rep, the answers get cut down to the level of the community, which is not very high in terms of technical ability, anyone with 125 can vote any answer down. Those with high rep are not real authorities, they are really providers of answers that the low tech community can understand. Quick short answers win rep, long thoughtful answers (anything that requires scrolling or opening a link) get voted down. The "authorities" are in reality low-level techs who can draw and shoot faster.
Absence of authority results in anarchy, posing as "democracy".
Once in a while the OP, from the outset, will give you such a great comment, that causes the sharks to exit fast. Then you get focused interaction, and the page is clean of mediocre commentary and argument.
Therefore, if you are going to speak to the deeper problem, be prepared for the battles and the negative rep. This is not a site for, the rep system does not support, high level technical questions or answers.
(Watch the Piranha Effect being proved on this Answer. If you scared of the truth, shoot the messenger. I love it.)