I think Tim lost because of his nevertrump campaign; but Marshall is even worse. He is a Rino and does not support Trump. Marshall did not advertise that he is nevertrump. Tim did advertise he was nevertrump. That was the difference.
If President Trump is to get anything done, he needs to get all the Cruzers out of both Houses! They'd NEVER support him on anything!