You can keep corydoras on a gravel substrate, but it's not what their natural habitat is. They come from river beds with sand bottoms, and to feed they spend their time snuffling the sand through their mouths, keeping the yummy stuff and shooting the sand back out their gills. They can't do that with gravel.