Obama, sometimes mocked for being too soft to win in a tough election, shows uncanny ability to take a punch and hit back.