That's not a fair comparison since in that scenario the police don't interact with any end user and are not distribution anything themselves.
This is more akin to a police going under cover and selling drugs on the street, hoping to get near the supplier.