There are obvious trade-offs to buying a mattress in-store and online. But your decision may come down to key details of a brand’s warranty.