Shareholders can and should be wiped out with very little to show for it. That is the risk they run.
Demand deposit holders getting wiped out is unthinkable. Taking any non-negligible haircut on their demand deposits (yes, even over $250k) will destroy confidence in the banking industry. This is far worse than the moral hazard of a bailout.
What must be done is not a corporate bailout to protect shareholders, yet tons of people think this is "socializing losses and privatizing gains."