The condensation hypothesis and the tidal hypothesis are two out of many hypotheses that explained the origin of the solar system. You can't actually say which of the two is correct because there were serious objections to them, although we are able to know how the moon, the sun, asteroids, and other celestial bodies came about.
The condensation hypothesis shows how the solar system was formed from a nebula, a slowing rotating cloud of gas and dust that became cooled and contracted (condensed). On the other hand, the tidal hypothesis shows of how the solar system was formed by the tidal wave created when a passing star was drawing close to the sun.
This caused the gaseous matter in the sun to be extracted and condensed into different masses. These masses of different sizes were the planets formed. However, the two hypotheses also explain why all the planets orbit the sun in the same direction.