When recording MIDI into flows that contain repeat structures, such as repeat barlines, Dorico Pro records the notes you play during each playthrough and merges them together into the same voice.
Any differences in rhythms between the recordings are notated according to the current meter.