The correct option is D Capacitor
All these devices use some other form of energy to convert it into electrical potential energy except one. All these devices except the capacitor. All the other three are able to provide a constant potential difference in a circuit for drawing current.
Electric Generator converts mechanical energy into electric potential energy.
Thermopile converts thermal energy into electric potential energy.
A capacitor is like a spring. It only stores energy. When you discharge a capacitor, it loses energy.
Thus, it cannot maintain a constant potential difference in a circuit.