Okay, so the myth goes like this. There's this goddess/demon called Kishimojin in Japanese. She had hundreds of children. And to feed them, she kidnapped other people's children for her and her own to devour. The Buddha lectured her by kidnapping and hiding her youngest child.
After the lecture, she vowed to only eat pomegranates instead of human flesh. This then gave rise to the comparison that pomegranates taste like human flesh.