I sometimes see comments and answers of the format:
Why are you using [that library]? Use [this other library] instead.
Obviously, there are times where this is totally appropriate, like:
Unfortunately, this isn't supported in [that library]. If you use [this other library] instead, however, you can achieve the same outcome. Here's a code sample.
Or, as I've sometimes answered:
[That library] is out of date, and no longer maintained. If you're starting a new project, I'd recommend migrating to [this other library], which supports many of the same features—including the functionality you're asking about.
Or, more borderline cases like:
I'm not sure how to solve this in [that library], but here's a solution in [this other library] which you could use instead, assuming you're not attached to [that library].
Other times, though it reads primarily as a personal preference. When I see these, I usually respond with a downvote (if it's an answer) and a comment to the effect of:
The OP was specifically asking about [that library]. Is there a reason they need to migrate to [this other library] to solve their problem? Or is that just a personal preference? If the former, can you update your answer to explain why?
Is this the appropriate response? Or should I also be flagging these as Not an Answer (NAA)? Based on the NAA FAQ I wouldn't assume so. But I see these often enough that I wanted to verify.
(Obviously, I'm not talking about explicit self-promotion, which should instead be flagged as Spam.)
Unfortunately, I haven't been keeping references to these answers, though I was reminded of this today on a case that I'd consider borderline (and, thus, didn't bother downvoting or commenting on). In absence of that, I hope these fictitious examples are sufficiently illustrative.