Trump, known for resisting defeat, reacted predictably.