Well amigo America didn't occupy Vietnam. We were there at the behest of the government of South Vietnam to prevent them from being taken over by the government of North Vietnam.
Israel, before this war, didn't occupy Gaza. And declaring war on Hamas means they get to go after Hamas.