If cauliflower has brown or black spots, a bad odor, or feels slimy, it is best to discard it as it may be spoiled.