OnTriggerEnter doesnt see enemy

I have a very simple script that prints a message when a gameobject with a certain tag enters a triggercollider. And the thing is that when the enemy enters nothing happens but when the player walks in it works just fine. Heres the script:

	void OnTriggerEnter (Collider other) {
		if (other.gameObject.tag == "Enemy") {
		if (other.gameObject.tag == "Player") {

The enemy is using the nav mesh agent with some simple code to make it follow the player. Heres that code:

	private NavMeshAgent agent;
	public Vector3 playerPos;
	public GameObject player;

	void Start() {
		agent = GetComponent<NavMeshAgent>();
	void Update() {
		playerPos = player.transform.position;

Does the enemy have a rigid body on it? If the collider that checks for collisions doesn’t have a rigid body, and the player does, it will register the player, but if the enemy doesn’t have a rigid body, they dont recognize the collision.