Youtube = sharing random clips / humour
Vimeo = amateur and professional videographers/filmmakers/animators/creators sharing their work!
The result is a way better community, with better quality videos, and people who care about the product.
Also, you nailed it, vimeo has better codec and improved HD content.