You expand, because expanding usually clears things up.
The target form sets the direction. An inequality usually wants factors — you need a product of known signs. An identity usually wants separate terms.
Next time: Read the target's form before expanding or factorising.