The main goal of a discussion can vary depending on the context, but generally, the most appropriate answer among the options provided is:
B. to reach a consensus
While learning about a topic (C) and contributing information (D) are also important aspects of discussions, reaching a consensus typically captures the overall aim of productive discussions, especially in collaborative settings.