If the player (object A) collides with the enemy (object B), the enemy (object B) will also collide with the player (object A). Check out the documentation:
A contact is detected if object A is in any of the layers that object B scans, or object B is in any layers that object A scans.
I'd recommend you use groups, add your player-scene to a group "Players" and your enemy-scenes to a group "Enemies". This way you can easily differentiate between the two in a call to _on_Area2D_area_entered
(if your scenes are Area2D-nodes) / _on_Area2D_body_entered
(else) by checking for those groups:
Player.gd
var hp = 10
func _on_Area2D_body_entered(body):
if body.is_in_group("Enemies"):
hp -= 2
Enemy.gd
var hp = 5
func _on_Area2D_body_entered(body):
if body.is_in_group("Enemies"):
print("I told you homeboy: You can't touch this!")