This is where the two diverge sharply. MD5 was designed to be relatively fast for its time, but it cannot compete with modern algorithms optimized for modern CPUs.
At first glance, both xxHash and MD5 are hashing algorithms that map an input (e.g., a file, a string, a stream) to a fixed-size digest. However, they serve fundamentally different purposes. xxhash vs md5