```python
prod_id_to_channel_set = defaultdict(set)
prod_id_to_channel_set[prod_id].add(channel)
```

That won't work because sometimes multiple channels map to the same product ID and there is no conflict.  For example both the beta and beta-debuginfo usually map to the same cert.  By just using a set there, we would falsely report a conflict.