That's not what it looks like in most cases. In the first half of any term the next election can't gain you the Presidency but it could lose you the Senate. On top of that, when it isn't the deciding vote, e.g. the first of either Alito or Thomas to be replaced, a moderate is a much better hedge than the coin flip even in the second half of a term, because if you take the moderate and then lose the next election at least you have the moderate in the other party's majority, meanwhile if you win the next election then you keep the majority regardless.
Which is to say, that's only likely to happen in the next few years if it happens for the second of the two Justices in the second half of a Presidential term and the Democrats lose the subsequent Presidential election.