Originally Posted by
swampwiz
Different saying, per the article you cited. "...takes the cake" was the award of a coconut cake being granted for the best sarcastic performances of white dancing.
Here's the right wikipedia article:
https://en.m.wikipedia.org/wiki/You_can%27t_have_your_cake_and_eat_it
/pedant off