Coincidentally Pakistan's electric demand stands at 17,000 MW and India's demand at 147, 815 MW. India produces 144,788 MW, marginally falling short of its demand, whereas Pakistan's installed capacity is, as you stated, an estimated 23,000 MW.
Given the context how would say the numbers compare?