Being on the same layer is different from masking the other’s layer.
I notice your physics process is directly moving the enemy’s position, rather than calling using velocity move_and_slide or move_and_collide, so it does nothing to react to collisions.