Wild bunnies have no issues digging in soil. Neither do some of mine...
Your choice of substrate might depend on where you have the digging box, and how much cleaning up you want to do. Mine can spread soil several feet away when they start tunneling. I imagine that bagged compost would spread further as it is lighter. Sand can be a nuisance if you start treading it indoors, but would help keep their nails shorter.