From a structural standpoint, we can see that,
is pyramidal whereas
is planar triangular.
and
ions are tetrahedral in structure.
is triangular planar and
is pyramidal.
is triangular planar and
is pyramidal.
Only option B has both molecules of similar structure.