Step 1: Understanding the Concept
A molecule is polar if it has a net permanent electric dipole moment.
This happens when the atoms differ in electronegativity and the shape is not symmetric.
Step 2: Checking the molecules
\(\text{O}_2\) and \(\text{H}_2\) are made of identical atoms, so the dipole moment is zero.
\(\text{CO}_2\) is linear, so its two bond dipoles cancel.
Step 3: Compare the options
\(\text{HCl}\) has two different atoms; chlorine is more electronegative than hydrogen, so there is a net dipole moment.
Final Answer:
Hydrogen chloride is the polar molecule.
\[ \boxed{\text{(D) }\text{Hydrogen Chloride (HCl)}} \]