"Hammered" in this context generally means "defeated by a very large margin". That did not happen. Hillary lost by a quirk of voter distribution. The margin was thin. Hillary "barely lost" would be a much more accurate description than "hammered".