You apparently do not recognize that Israel, all other arguments notwithstanding, is of strategic importance to us. They represent a bastion of democracy, stability, human rights, and a diversified economy in a crazy region in which we do have an interest, vis-a-vis trade, military access, oil/petro chemicals, etc.
Taiwan, IMHO, is mainly perceived as a bulwark against China's hegemonic goals. I'm guessing, hoping, that you understand why it would be in our interest to prevent China from uncontrolled expansion into the Pacific.
You don't make the same arguments for Ukraine, but others do. They might be right, they might be wrong: we don't know.
I'm not saying you're right or wrong. I'm saying that basing military-aid decisions on the physical proximity of the nation needing help isn't always a great argument.