Merrick was a pretty moderate choice who had been praised by many Republicans. Since they never voted on him, we don’t really know if they would have changed their minds and voted against him.
Time for some history. The GOP senators never expected a moderate like Merrick Garland, who was named by senators in the news before Obama announced his confirmation.
Obama is more of a realist than many in his party. He knew going in that no one would make it through the Senate, and that's why he nominated Garland. Why waste a quality Democrat jurist on a lost cause? I bet he was tempted to nominate Kavanaugh...