Just having a profit is not enough to say something was or was not a bad bet. I doubt anyone is happy with their bet on IBM in the past couple decades. A riskless bet on SP500 would have delivered far greater returns.
IBM is a good dividend stock. That said, there are certainly stocks you could have bought and held over the past couple of decades (as well as many index funds) that would have had better returns overall.