I think there is too much importance put on the death of a political leader. Organisations like Hezbollah do not collapse merely because their political leader died. It's not like Nasrallah was some military genius general.
We see this with the Taliban. The USA assassinated their leaders again and again and again. The Taliban only grew stronger. It's not about an individual, it's about an organization and an idea.
Ironically, we also see this with the USA. It's obvious that Biden's totally out-of-it. This has had basically zero impact on America's military strength.
It's the Zelensky paradox where if you try to get rid of the retard in charge it just causes more people to sign up for the war.
Historically at least, if you want to take and incorporate new ground, it seems to make sense to allow the enemy themselves to depose/collapse their political leadership by realizing the hopelessness of fighting on. Hitler, Ngo Dinh Diem, Hirohito and now Zelensky etc. As opposed to, like what you said, Afghanistan.
China was also humiliated in the third Taiwan strait crisis. But it didn't start a war then but weakly sent missiles into the ocean. But today, the situation is different
US just wants to paint it as a humiliation to make themselves look stronger. US didn't fire a single shot, they sailed under PLA surface and undersea escort, at gunpoint.
Around the same time as the 3rd straits crisis, US was strongarmed by China to retreat from Taiwan all official military presence, including what's speculated to be nukes.
It was political theater. Washington got what it wanted, to paint a narrative of Beijing shitting themselves when they sailed carriers down the straits. China's military threats also got what they wanted, to remove the US presence on Chinese land. (and intensely track US signatures, especially if US was dumb enough to sail the CBG's SSNs inside the straits)
Prior to 1970s, US had basically transformed Taiwan into its own Crimea. Rounds of pressure and negotiations from China turned it from something like Crimea more to something like Gaza or the west bank, where there is no official foreign occupiers, only local fighters.
That could make the situation a bit worse for Israel and more for the US, you see, organizations like Hezbollah do not disappear, that is why Israel will never ever defeat Hamas unless genocide 2 millons+ palestinians, killing the main head will pass the power to people who probably has less restrain and are less willing to negotiate, complicating the situation with the US, who doesn't want Israel to be in state of perpetual war and become a never ending money pit.
It's important to separate genocidal intent with actual genocide. Unless Israel occupies the battlefield areas to the same degree say Germans occupied Eastern Europe, it is impossible to carry out the genocidal intent to completion.