"Vegetables" are not A Thing. The word just means a part of a plant we eat as a savoury dish. Some are seeds (like peas), or pods with the seeds still inside (green beans), or leaves (spinach, chard), roots or kinda-roots (carrots, garlic, beets), or (baby) flowers (cauliFLOWER, broccoli, Brussels sprouts - all from the same recent cabbage ancestor), lots are fruit (pumpkin, zucchini, cucumber, peppers, tomatoes). I found it fascinating when I planted my first garden 5 years ago, knowing squat about nature. Veggies are just plants where your pick the good part.