Green’s Dictionary of Slang

take the bun v.

[var. on take the cake v.]

[late 19C+] (Aus./US) to surpass, to outdo, esp. in excessive or extreme behaviour; thus also give/pass the bun, to credit something with being the best or worst example.