The only way I can think would be 4 Tasks
Task #1 = Your first check
Task #2 is your second check
Task #3 is your 'Action' if they are the same
Task #4 would be the alternate 'Action' if they are different
On Task #3 you would have a condition. That condition would look at the Previous Task (#2) and Compare it with Task #1. Neither Task #1 nor Task #2 are the "Active Task". Set it like this
Where you reference the current job (in "Job Name") and Task #1 (in "Task Name") (Note* - My task #1 is the 'Execute' task)
Here is the trick. From that screen go up one level to Add/Update Condition Set. Click on on Actions
Leave "On Match All" as "Continue
- "Continue" in this context will mean that Task #3 will run if the condition is met, ie. "Continue on with Task #3"
On "On Match None" point that to Task #4 (my example is a powershell task)
Double Check all of your Flows for your tasks to make sure that Task #3 does not Continue when it is Successful or Completes
Here is what Task #1 and #2 should look like
Here is what Task #3 should be
The flow for Task #4 is irrelevant
The down side to doing it this way would be that you have to specifically call out the job and task outputs in the Condition and you have to call out the specific job and task in the condition Action. And that you have to make a new condition for any comparison like this that you want to make. This condition can't really be reused for any other job and must remain "with" the job if you move to a new server, perform a restore, etc.