This can be accomplished with Advanced Correlation rules. These are hiding in the rules builder behind this gear:
When you click on that, you'll get the option to have the LEM check if certain values on multiple events are the same or unique, so you could set it like this:
I've attached a rule I built that should do what you want if you want to look at this in your LEM.