When broccoli is cooked for too long, it releases a compound called sulforaphane which has a strong, unpleasant odor. To avoid this, try cooking broccoli until it's just tender-crisp, and not beyond.