everytime I have a stack of ore, I check the ore price and the bar price and sell whichever is higher. It not only changes from ore to ore but also from day to day. Some days I sell a stack of Mithril ore, others Mithril bars, if they are similar then I just stick with the ore since I'm too lazy to run over and smelt it.