I may be wrong but I don't think Ancestry automatically checks for duplicated records/media during the merge. As I remember, records and media for both duplicates are included in the 'merged' person. After merging, you might want to check that you don't have multiple copies of the same records/media attached to the merged person.
Mike