I don’t know about the TV show, but in the original Conan Doyle stories, Mycroft is considered smarter. However, he’s also lazy and is therefore more of an armchair sleuth. Sherlock occasionally consults him, but he does the footwork himself (with the assistance of Watson).