You're right, they mean the same thing.
"Nitty-gritty" is African-American in origin and it entered the main language in the 1960s.
Wentworth and Flexner's 1967 "Dictionary of American Slang" has it in the supplement, and their definition is "the basics or essentials of any situation, predicament, action, etc. esp. the hard, unvarnished facts, 'brass tacks,' or harsh realities." The American Heritage dictionary calls it "informal" and "origin unknown."
They list "brass tacks" in the main section, with a 1914 example of use, so they consider it to be part of American slang, but they don't give any origin.