This reminds me of the plot some Libertarians had back in 2020 to win the U.S. presidential election by taking New Mexico or some other state. I can't remember how it was supposed to work mathematically, because NM doesn't have enough votes by itself to prevent either other candidate from getting a majority, but I remember having seen articles about it. (I tried searching to provide a link and can only find references to Texas, and I'm absolutely certain the articles I read were not about Texas.)
Maybe you were thinking of Utah in 2016? https://en.wikipedia.org/wiki/Evan_McMullin_2016_presidentia...