I managed to find to solve the issue by knowing exactly the number of differences in the first few lines and counting onwards from there.
diff a.txt b.txt &> log.log wc -l <"log.log") != <known number of differences>