The chemical bond present in hydrogen chloride is a covalent bond. In hydrogen chloride, one electron each from hydrogen and chlorine are shared between the two atoms.
The chemical bond present in an oxygen molecule is covalent bond. In an oxygen molecule, each oxygen atom shares one electron to complete its outermost shell.