Looks like a gall crab, my experience was it irritated my Pavona and it started losing tissue but usually they die and are covered over as the coral grows. If its mated female they can reproduce.
That looks like the mouth of the hammer. Does not look like a gal crab because it looks like tissue not a crab. I had a gallon crab in a brain coral once. That thing looks like the devil.