Is it OK to offer help on another platform?
Yes...
Provided the right context as there's a few different scenarios:
Option 1: The question isn't really right for Stack Overflow in the first place
In this scenario it's best to flag the question, or downvote it/vote to close it (depending on what privileges you have). There's nothing saying that you can't point them in the right direction when you do this.
Option 2: The question is valid for Stack Overflow, but the questioner feels they need more support beyond the answer
If the answerer feels comfortable in doing so, then there's nothing stopping them from providing extra support over something like Discord. In this scenario, the question and answer should be updated once the proper solution is found.
Option 3: The question topic is valid for Stack Overflow, but the question simply lacks proper detail to give a reasonable answer
Again, there's nothing stopping people from hooking up on Discord to help each other... BUT, the question should either be closed or updated with the necessary details to post a reasonable answer.
Should I downvote/flag the comments in question?
Yes, these comments provide unnecessary clutter - I'd argue they shouldn't have even been comments in the first place (especially those giving out usernames), they should have been Direct Messages between the two users.
Additionally, if the question/answer is in a state where it isn't particularly clear or useful; then feel free to downvote them too.
In Summary
If you feel like a user would be better helped elsewhere, feel free to point them that way. For instance, if the questioner is an absolute beginner who has no handle on code whatsoever, as long as you answer the question at hand, providing links to something like CodeAcademy will genuinely help the questioner.
If the questioner doesn't know how to dig up the extra information needed for you to form a reasonable answer, then it's up to you whether or not you connect on another platform to help them form the question and then answer it.
Similarly, it might be that the questioner has a few questions that seem connected - rather than answering individually it might make sense to take a closer look at their codebase. Fixing one issue, might resolve the others; in which case one question can be expanded with the relevant information, and properly answered.
In ALL cases, if the question/answer/comment isn't something that might prove useful to other users then downvote/flag accordingly.