I can also switch back and forth between JavaScript and C++. Doesn't mean they are similar.
Conceptually, branches in git and mercurial are worlds apart.