For noise blocking during sleep, foam beats out hard silicone. However, soft silicone has many of the same benefits as foam, plus more durability.
You can experiment with soft silicone and foam earplugs to determine which provides you with the most comfort and relief from external sound.