Original: It bears a fruit of the same name, commonly used as a vegetable in cooking.
Simplified: The fruit of the aubergine plant is commonly used as a vegetable.