If a certain statement of a Tanna or an Amora is not Halakha why do we learn it? I have been asked this many times. One of the classic arguments is that minority opinions are stated so that future generations can rely on them in cases of need. A further reason given is that the Talmud explores the extremes of each case in order to learn the halakha in any given situation.
אמר ליה פוק תני לברא
said to him: Exit [and] teach [this halakha] outside. [i.e. this baraita is not in accordance with the accepted halakha, and therefore it should not be made part of the regular learning in the study hall.
So what exactly are we supposed to do with most of the Talmud?