Cash-rich companies have lower credit risk and can invest in growth, even when debt-ridden rivals are pulling back.