Analogy:
Comey and 2 accomplices pick a lock then steal 2 million in jewelry. Comey caught with 2 million in jewelry in his possession.
Comey sets himself up by leaking evidence in a case for picking the lock. Could have been the other two that did it, though. Comey skates on picked lock charge which creates public image of possible innocence in jewelry heist.
Barr didn't bite.