If warfare was just a natural instinct that all humans had then all groups of people around the world would use warfare to further their civilization. Instead, since warfare is an invention of man instead of a natural part of humanity some groups around the world no nothing of warfare whatsoever. Along with these groups there are also many groups, like the Pueblo Indians who only used warfare to defend their civilization, and did not use war to expand their own lands and influence. Had it not been for another group bringing war to them they would have most likely never partaken in war themselves.
As far as war becoming obsolete, that is unlikely to happen. Because while better ways to resolve our conflicts are known, they have been known for many centuries and warfare has still thrived. If every nation around the world were peace loving and strove to resolve its differences by means other than warfare then yes, war would become obsolete, but the human race has the tendency to hold onto its past. Governments do not want to change the way that they resolve conflicts much like people do not want to change the way they run their own everyday