A chat is a friendly informal conversation between 2 people. (such as gossip or chitter-chatter)
A discussion is an exchange of ideas or to get a point across (such as a debate)
A conversation is a talk between 2 or more people in which news or ideas are exchanged (e.g. Did you see the game last night? How are you going to vote?)