Input

Action

Result

Run the tool to see the result.

How to use

Enter one item per line. Empty lines are skipped. Each result appears once, in first-seen order from A then B. Choose whether to trim surrounding spaces or ignore case. Swap lists to reverse the difference.