Except a political party is a private club and Bush v Gore will not even entitle either the haloed one or Billary to a hearing in court.The parties, down to the state parties, make their own rules as to how delegates are alloted and no court is going to interfere in that reality.
It's sort of like those extra-constitutional "blue ribbon panels" that Congress always sets up to make the tough decisions they don't want to make.
The parties have not been “private clubs” since 1944 when the U.S. Supreme Court struck down the white primary as unconstitutional.