[d1 for d1, d2 in product(dict_listA, dict_listB) if d2['id'] == d1['id'] and
    d2['b'] != d1['b']]
list of dictionaries, how to get: intersection based on one value and symmetric difference based on another value