@VonC has the high level, theoretical view.
In everyday use, you'd store your source code and its history in a git repository, and store your build artifacts (e.g. the compiled software you want to deliver) in Nexus.
As such, they are not really comparable, but complementary.