If you're in a kitchen, it's a vegetable. It makes sense in that context, where the definition is based on its culinary properties.
Or maybe wave-particle fruitality?
In biology, a fruit contains a seed (this includes pumpkins and cucumbers too), while a vegetable is any edible part of a plant (including fruits like a banana, seeds like an almond, roots like a carrot, leaves like a cabbage...)
When it's for eating, fruits are generally eaten raw and as a sweet dish, when vegetables can be either raw or cooked, but more often as a starter or with the main dish.