The main goal of a discussion can vary depending on the context, but it often involves multiple goals. However, if I were to choose one that broadly applies to many discussions, I would say:
**to reach a consensus**
This option reflects the collaborative nature of discussions, where participants share perspectives and aim to come to an agreement or a shared understanding.