On Stackoverflow in particular, there is also a ~YY answer. You explain that you specifically don't want Y, then someone tells you you are wrong and to simply use Y.
Might as well just call this the "Stackoverflow problem", although it is really a family of problems where either the requestor or (typically) the responses are less than helpful.
As a third party searcher looking for answers to a specific problem, I would prefer to see a direct solution to the stated question first, even if it is followed by admonitions that "you probably don't want to do that" or "this other thing is a better approach".
Well, yes, but many of the times people on SO say they don't want to use Y, it's because of some assumptions they have about Y, and actually they do want to use Y, or use it differently than usual etc.