Centrifugal force: The apparent outward force that a rotating mass experiences is known as centrifugal force.
Gravity: Gravity is the force that pulls items toward the center of a planet or other entity.
Diagram representing the relation between centrifugal force and gravity,
Therefore,
Gravity isn't the same as centrifugal force.
Gravity acts in the opposite direction of centrifugal force.
The gravitational force attracts the thing to the earth's center.
The centrifugal force acts in a radial outward direction, attempting to hurl the object away.
Gravitational force is a genuine force, according to Newtonian physics, whereas centrifugal force is not a real force because it has no physical foundation.