They are different because DataHash takes the length and the type of the message into consideration. so different message of same contents and different types give different outputs.