Transistor with 2 LEDs
When saturated, the voltage across the transistor (Vce) will be reduced to about 0.2V.  This effectively shorts the R3-D2 path so D2 stays off.  Also it increases the current through R2 and D1 because now the voltage from Vcc to the cathode of D1 is increased (to Vcc-0.2V).