Pomegranate

Wild varieties, whose fruits have a sour taste, are used in industry to obtain crystalline citric acid.

An excerpt from the article 19 facts about pomegranate

Sweet varieties are used to produce wines.