Issues with 'when' filter on with_items loop

Hi All, been tearing my hair out this AM on this one so I think Im just doing something wrong. Long story short, I have two lists in my playbook. One that contains a set of commands from a device and another that contains the set of commands I wish to configure. What I’d like to do is diff them to come up with which commands should not be present on the device. In other words, Im comparing the active state of the device to the configuration and getting the delta. This seems to be working well and Im able to generate both lists and compare them using the jinja filter ‘difference’. Here’s a sample playbook…