Reminds me of the paper, "Stereotype accuracy: One of the largest and most replicable effects in all of social psychology": https://gwern.net/doc/psychology/cognitive-bias/2016-jussim....
TL;DR: Group stereotypes, at least on their face, tend to be quite accurate. It's the implications people draw from or apply to them that can be problematic.
Chocolate (dark vs milk) and coffee drinks (heavy on milk and sugar versus light on them, or black) follow similar patterns in perception (and actual observed preferences, IME)
Of course, how much of that is nature versus socialization is another matter… but also, the kind of risk-taking and one-upsmanship behavior that might drive men to be more willing to acquire tastes for things that aren’t initially appealing and to so-expand their palates may itself be hormonal, so even one plausible “nurture” cause for this might actually be “nature” one step removed.
But either way, and even if data doesn’t bear any of that out (pretty sure it would, though), the perception that all that’s generally true is certainly common.