I'm surprised it's such a difference. I wonder why, as the script just does layer.merge()
on the group with the merge tag. It doesn't do processing on the layers in the group, except to check for the ignore tag.
It feels a little bad to not validate using merge on a layer, but OK, we've done it. Script version 5.4.