You have to get nearly halfway from the surface of the sun (photospere) to its core before the density of the sun’s material is equivalent to that of the earth.