Oxygen atom can form hydrogen bond whereas chlorine does not. The tendency for hydrogen bonding depends upon
1. Small size and
2. High electronegativity values
Although the electronegativities of O and Cl are nearly the same yet chlorine does not form hydrogen bond due to its larger size (99 pm) as compared to oxygen (66 pm).