You’re right. “Debating” and “discussing” have nothing in common.
Debating is for two different points of view. Discussing is talking about the same point of view. You are right - they have nothing in common.