Merges newSegment info into this segment if the ids are equal.
Returns this if a different segment is passed.
this