This is a problem I've experienced, and i've seen it talked about outside of Stack Exchange as a criticism of it.
The basic problem is me, or someone else asking the question
How do I do X? I have attempted this, and that, but I don't understand why this isn't working.
But many responses end up like
No no no, don't do X. You should be doing Y instead. Here's how you do Y.
Y, while it'd be helpful advice, it does not solve the problem of how to properly do X. The problem continues even if you explain why you have a constraint of only doing X instead of Y.
The "How long to hard-boil an egg" image, while it's an edit, is a great example of this.
I'd like to know how to word my questions to attempt to avoid falling into this kind of issue that doesn't really result in anyone's problem being solved.