The compound 'X' undergoing the following reaction is

From the NSE 2018 · NSEC · Chemistry paper. Try it, check your answer, then read the worked solution below.
The compound 'X' undergoing the following reaction is

Try it yourself first, then check your working against this.
Worked solution
is phthalic anhydride, so X must lead to phthalic acid (1,2-benzenedicarboxylic acid).
With (C), 2-(chloromethyl)benzoic acid:
(A) gives isophthalic acid (meta), which cannot form a cyclic anhydride; (B) has an unreactive aryl Cl; (D) has a phenol.
(C)
Concepts used: phthalic anhydride formation
Every past question tagged to the same part of the syllabus, with solutions.
Past questions on the same topic (Acid derivatives), each with a worked solution.
Timed, in the real format, and marked the moment you submit.