Foam are significantly less comfortable for side sleeping and block less noise than Silicone (Mack's) which still come in large sets for well under $1/pair.
The only reason I tried them is that I found myself in a situation where my standard silicone earplugs were gone and where somebody gave me a box of hundreds of earplugs they didn't manage to sell at a concert. I was bracing myself for a terrible night of ear pain, but was pleasantly surprised of how superior they were to anything I had tried, still using earplugs from the very same box as my night-to-night noise relief