So what should Israel have done to not hand control over to Hamas on a "silver platter"? They + the US tried to keep Fatah in power, that was everyone's preferred outcome where some stability could've emerged. That failed due to real Palestinian support of Hamas, as well as Hamas' military force.
Israel's options were basically to intervene militarily, overriding the results of the election; or "accept" the results and deal with/ reduce Hamas' military ambitions (which is what they've tried to do ever since). Both options put Israel in a losing situation. Override the will of Palestinian elections and you're denying them their sovereignty, interfere with the obvious military threat, and you're doing apartheid. Lose lose.