The function of gravity is infinite, and the repulsion between molecules is much stronger than that of gravity, but it only works when the molecules are close together. When gravity tightly squeezes all parts of the star and gradually contracts inward, when the degree of contraction is too high, the repulsion between molecules will be stronger than gravity, which will cause these molecules to be pushed outward. When these molecules are pushed away from each other by repulsion, the repulsion will fail and gravity will immediately pull them back again. Take the earth as an example. When a part of the earth rises excessively (if Mount Everest is ten times higher), the crust at the bottom of the mountain will collapse because it can't bear the gravity of the giant peak, and the buoyancy generated by the lava inside can't support the weight of the peak. The summit will sink into lava, and the raised part will gradually sink into the earth.
Beyond the universe or the universe, let's compare. If the universe is a nucleus, then the multi-layer electronic layer outside the nucleus is covered by many spherical cosmic layers just like the multi-layer universe outside the universe. For example, the solar system is approximately spherical, many spheres similar to the sun revolve and rotate to form the Milky Way, and the Milky Way is also approximately spherical.
If the shape of the earth is not "round", the phenomena caused by gravity and repulsion will constantly adjust its shape. When the parts are adjusted to the equilibrium state by gravity and repulsion, the earth will approach a circle. When the mass and gravity reach a certain level, any star, planet or satellite will become spherical. The minimum requirements are about 800 kilometers in diameter and 500 million tons in mass. Stars smaller than this lower limit are irregular in shape.