This is like comparing apple and oranges -
The hexdump utility is a filter which displays the specified files, or the standard input, if no files are specified, in a user specified format whereas md5sum calculates and verifies 128-bit MD5 hashes. The MD5 hash (or checksum) functions as a compact digital fingerprint of a file and this fingerprint is used to compare two files if both are same or different.