As nouns,
commander in chief is a hyponym of
commanding officer; that is, commander in chief is a
word with a more specific, narrower meaning than
commanding officer:
commanding officer: an officer in command of a military unit
commander in chief: the officer who holds the supreme command