The compare datasets node is made for this kind of use case, and might be a nice way of simplifying your workflow and avoiding these problems.
This post has an example of how you might build a workflow around it. You’d just need to swap the Google Calendar nodes for database nodes.