The scenario you're describing sounds like a situation involving an electoral dispute, particularly in the context of the United States presidential elections. In such cases, certain bodies or officials may assert their authority or mandate to decide the result rather than allowing electors to determine it.
In the U.S., there are specific laws and constitutional provisions that govern how electoral disputes can be resolved. For instance, Congress, specifically both the House of Representatives and the Senate, plays a critical role in the certification of electoral results. If there's a dispute concerning how electors are chosen or the legitimacy of the electoral process, different state or federal courts may also be involved in adjudicating those disputes.
Furthermore, the Electoral Count Act provides procedures for addressing challenges to electoral votes. If electors are challenged, it is up to Congress to ultimately resolve the dispute. The Supreme Court can also be involved if a case arises regarding the interpretation of election laws or the Constitution.
In any case of significant electoral controversy, political dynamics also play a substantial role, and political actors may assert their will or influence outcomes based on parties' interests and the context of the situation.