We all make investing mistakes, but buying a commodity producer lacking a cost advantage shouldn’t be one of them.