Answer: C. A comparison must compare like quantities: the price of an apple with the price of an onion. “That of an onion” supplies the second price without repeating the word.
Options A and B compare a price with an onion itself. “More costlier” in D incorrectly combines two comparative forms.