As an outside observer, it does seem that Pakistan is on the brink. Yet, I believe Pakistan's past will help it pull through. Pakistan was, 25 years ago, a relatively liberal nation which had been, by most counts, an economic success. Those attitudes live on in a society's memory and are impossible to erase and it's those attitudes that will form the basis of a society's resurgence. It's the same reason why Egypt or Lebanon, no matter what trials they go through will be, socially, very different form Saudi Arabia or Qatar.
Again, as an outsider who could very well be wrong, it seems like too little of Pakistan's social and political mind space is taken up by economic development and too much by questions of identity and morality. A change in focus, particularly political focus, could go a long way in restoring Pakistan's health.
In India, and this is a relatively recent development which will hopefully last, governance and development have become the centrepiece of almost all elections- in particular the last one. The BJP's victory has nothing to do with nationalism or Hindu pride, it's a consequence of Modi promising development and his track record of development in Gujarat. For Indian democracy to prove its maturity, the Indian people must vote him out if he fails to deliver in terms of the economy- from everything I've seen that's exactly what will happen if he does indeed fail.
While I appreciate the positivity. The elements that wish to negate the tolerance and progressiveness in the society of Pakistan did also exist in some form or another since its inception(after they left India for the very nation they worked against). The difference was that 25 years ago these elements were still not institutionalised as they were during the final days of Zulfikar Bhutto's rule and the subsequent Dictatorship of Zai-ul-haq.
Moreover, the appeal of Modi's economics may have won him the election.. but there is a marked change in the tolerance and agnosticism of Indians via their online behaviour based on the ideals projected by PM Modi for his political crowd. Bit by bit the "unreason" is creeping in. In Pakistan's case.. that "unreason" was preached through institutions.