Trading Diamonds Back for Infinite Bread

What is going on
A custom villager offers 20 diamonds for 10 bread, and 20 bread for 20 diamonds. While any normal player would keep the infinite diamonds, the commenter calls it a genius exploit for getting infinite bread.
















