OSB has a higher tendency to resist moisture, but this also means it holds onto more moisture leading to rot. Plywood underneath a neglected leaking toilet will rot as well.