I was reasonably certain that legumes came from flowers and are thus botanically fruits, but wanted to double-check this before claiming chocolate is a fruit, and not a vegetable. It turns out cacao beans come from
really pretty flowers.
Also from the above-linked site, I learned that cacao flowers have no scent, and thus bees do not pollinate them. Other insects do so entirely by chance, which is why cacao trees have so very many flowers.