What you appear to be requesting is to find the unique lines between both files if space is not significant. What it is not clear is what to do if there are repeated lines in the same file.
Here's a Perl version that output only lines found once after processing every line from both files, space agnostic.