Use this regular expresion:
.*DEBUG.*
to ignore lines containing the text "DEBUG"
File A: Line N
xxxxxx DEBUG xxxxx
File B: line N
yyyyyyy DEBUG yyyyyyy
If only this line N its different in the 2 files, it will me marked as equals files.
In window file folders, Folder Filter, select the expresion and in select option select *.*