arguably you can only kill a god if they let you.
Show up with all sorts of magic gear, and the god says you weren't born, or turns the ground into lava and you die instantly, or removes all oxygen from the area and you suffocate. Or maybe the god makes you decide you never wanted to fight them...