You can't infer intent that way. Nuking Gaza isn't free, it would introduce an existential threat to Israel. They are toeing a dangerous line already, and using WMDs would align other countries against them really quickly.
Putin isn't avoiding using nukes on Ukraine because he's a nice guy.