The difference is rather important; dust particles and molecules of heavier elements are particularly effective at cooling the gas, thereby making the collapse into a protostar that much easier. Hydrogen and helium cannot cool as effectively by themselves, meaning that you need a really massive amount of gas for the self gravity to overcome the internal pressure. Hence the high mass of the first-generation stars.