md5 doesn't have anything to with it. sha256 maybe takes 10% longer to compute the hash.
On the other hand collisions between two different files are still not something you would ever expect to see in the wild so if you are trying to find duplicated files, then you don't have to worry.