The gravitational pull of celestial bodies like the Sun and the Moon does indeed have a greater effect on liquids, particularly the Earth's oceans, compared to solid objects. This phenomenon is known as tidal forces.
Tidal forces arise from the gravitational attraction between two objects, such as the Earth and the Moon or the Earth and the Sun. The strength of the tidal force depends on the mass of the objects involved and the distance between them. When it comes to the Sun and the Moon, even though the Sun is much more massive than the Moon, it is also much farther away from the Earth. As a result, the tidal force from the Moon is about twice as strong as the tidal force from the Sun on Earth.
The reason liquids, like the oceans, are more susceptible to tidal forces is that they can flow and deform more easily than solid objects. As the Moon's gravity pulls on the Earth, it creates a tidal bulge on the side of the Earth facing the Moon and another bulge on the opposite side. This causes the ocean water to experience a gravitational attraction that leads to a tidal rise and fall, creating the familiar phenomenon of ocean tides.
In contrast, solid objects like the Earth's crust are much less deformable and resist the gravitational forces, resulting in negligible changes in their shape or size due to tides.
It's worth noting that while the Moon's gravitational pull is primarily responsible for tides, the Sun's gravitational force also contributes to the tides, albeit to a lesser extent due to its greater distance from the Earth. The combined effect of the Moon and the Sun is responsible for variations in the height and timing of tides throughout the lunar month.