The NH2 is an electron donating group, so no, oxygen would not be able to hold the negative charge better. The NH2 group will do a nucleophilic attack on the carbonyl group with chloride as the leaving group. Now the nitrogen will have a +1 charge so the base will deprotonate and there will be another electron to attack the other chloride and have it leave. hope that makes sense.