“Once a planet gets past a certain mass, gravity will cause the matter to compress until nuclear reactions start and it becomes a star.”
Wouldn’t that depend on what elements are present on the planet?
Sure, but all the planets that are big enough to get close to stellar masses are gas giants, and their atmospheres are composed mostly of helium and hydrogen.