The agent on the phone told me I can do SDC from LAX/EWR to LAX/JFK.
Northwest did treat all 3 airports as same NYC and I never had difficulties to do SDC so I believe UA does that too.
Thinking logically, EWR and LGA are only NYC and JFK is not NYC is more likely wrong.