Does this compare line-by-line, character-by-character, or both?
Both, layered — line alignment always runs first, then you choose whether the inline highlight within changed lines is character-, word-, or line-granularity. Line mode skips inline highlighting and just marks whole lines added or removed.