He can still nominate after the election even if he loses it - his term doesn't end immediately. It's not really like the other two times - not like 2018 because there was no vacancy on the court then, and not like 2016 because the president and the Senate were deadlocked then.