To prevent bedsores, opt for a mattress with good pressure redistribution, such as memory foam, latex, or air mattresses. These materials offer a higher level of pressure relief and reduce the risk of bedsores by decreasing pressure points on the body.