When I try your first script, I get the following output:
Auto-merging conflicted
CONFLICT (add/add): Merge conflict in <filename>
The second scenario will result in conflicts in lines that differ between the two versions, but not in lines that were changed only in one or the other version. This is the expected behavior.
Git , VCS. - , . , . , , . , . , , . , , , , .