Pantyhose works better, as it's a much finer mesh material. The real danger of using rice is the very fine dust that it contains in the bag. Pantyhose leaves it virtually dust-free.
Source: have done the river fail, toilet fail, saved the kids' tablets a couple of times. Lol