I think you're forgetting differences in military capabilities.
Israel can be more selective in it's targets in Gaza, but they deliberately chose hospitals. Iran, the nation defending itself, has to send large missile barrages to try and break through the iron dome defense. Those will be less precise
So what Iran is just supposed to let Israel continue unprovoked attacks? Yeah that's a fucking stupid take.
Also the US was the invader during the Vietnam War so that's a bad example all around