Unable to disable collider2d and renderer of gameobject.

Object A checks for collisions from Object B. If there are collisions, then the script is supposed to disable to collider2d and renderer of Object A. This is not happening currently. OnTriggerEnter2d is an IEnumerator because I need to run a Coroutine in there. Script is attached to Object A.
gameobject.collider2D.enabled & renderer.enabled don’t work either.

	bool  invulnerable = false;

	IEnumerator OnTriggerEnter2D(Collider2D kaboom)
	{
		if (!GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerDamage>().invulnerable)
		{
			if (kaboom.gameObject.tag == "Crowd")
			{				
				collider2D.enabled = false;
				renderer.enabled = false;
				Debug.Log("Radius is colliding with crowd");
			}
        }
    }

Something was wrong with how I had proceeded with the code. Rewrote the code with an entirely different approach and it does not make sense to post it here, as it will only end up confusing, than help.