What’s the difference between head-hopping and omniscient 3rd-person POV in fiction? Which one is okay to use?

Disclaimer: I probably got a lot of details wrong in my examples. Also, this is all my opinion, so you’re free to agree or disagree.