Pick a woman at that time to replace her.
Trump could of course pick a woman to replace Ginsburg, but that wouldn’t do much. Women on the Court aren’t really considered anything special nowadays. I doubt it would help us much with women voters. A woman should be chosen just if she’s a great, conservative, Originalist, young pick, that is to say by the same criteria as a man, so that could be anytime.
The first Asian-American on the Court, though, would be a breakthrough and might actually hurt the Democrats with one of their constituent groups when they go crazy attacking him. A lot of minorities just see another white woman as just another white; we might win a few votes with the insanity that will come from the Dems if Thapar replaces Ginsburg and at least we’ll already have our counter-attack ready (i.e., the Dems are engaging in anti-Asian, anti-Indian bias...they aren’t pro-minority, just pro-leftist, etc.).
Of course, the Dems would attack him now and that might help, but I still think this pick will be a lot easier to get through without absolute insanity from the left than Ginsburg’s, so strategically speaking I still think Thapar needs to be saved for when a leftist goes (Breyer would be OK if he somehow goes before Ginsburg).