In their most basic forms, both are cleansing agents that will clean your hair effectively. However, bar soap has some properties that make it a less-than-ideal cleanser. Yes, your hair will be clean, but you'll have to deal with tangles and frizz that wouldn't show up if you just washed your hair with regular shampoo.