Lumping the whole family together can be misleading.
• Soy and peanuts are pretty bad if you care about O6 fat, endocrine disruptors, immuno-reactive proteins, and dubious growing conditions.
• Starchy beans can be digestively unkind and most folks don't need the filler calories. Coaxing them out of their storage phase of life with soaking or culturing is probably wise--I would skip the canned ones. Baked beans in particular tend to have a long ingredient list. Though frozen green peas are immature and very low in these toxins.
• Pea pods, green beans, mung sprouts, and other low-energy parts are all groovy.
Legumes are seeds and seed foods range from harmless to harmful but none of them are really beneficial IME. Plenty of other options for filler calories.