The staging ground "is for" post improvement specifically, yes. That doesn't mean people shouldn't try to be helpful in other ways, IMO. However, because comments are not for answers, this should only be done when the commenter believes that the question cannot be salvaged (which roughly corresponds to using the "off-topic" or "duplicate" options in SG).
In the case of duplicates, a comment can help the OP understand why the underlying question is fundamentally the same question as another that's commonly asked, and how to apply the advice to the specific circumstance. Such content might be perceived by third parties as "an answer". There aren't hard lines here.
In the case of off-topic questions, a comment can suggest where the question might be on topic instead, or basic approaches to the problem. Similarly, whether others consider this "an answer" will depend on both specific details and on who is doing the evaluation - and I don't think it's worth worrying about.
Of course, people can be wrong about such decisions. In the current case, I suspect there's a valid underlying question (about how to specify dependencies for a project when packaging it for PyPI), but right now it seems unclear (it could actually be a completely different question about the specific package, and issues OP had with setting it up locally) and unfocused (maybe it's trying to be both?) It certainly also needs extensive editing even after that's resolved. But even so, the question seems perfectly on topic to me as a Python expert.
When someone writes ambiguously answer-like content in the SG, and the question eventually gets published to the main site, the comment will get wiped and that's fine. The comment has done its job and would be "no longer needed" if it had been preserved.
The SG exists so that we can improve the quality of newly added questions. But it necessarily also serves as an onboarding interface. If we actually care about the prospect of new users ever asking more than one question, then it's necessary to a) take the opportunity to explain how to do future questions better, even when the current question can't be accepted; and b) give new users the impression that it is, in fact, feasible to ask questions here. To this end, I believe it's helpful if new users aren't required to walk away empty-handed "because policy" in these circumstances.