Here is an example for this use-case:
In the example workspace, there are three data inputs and each of them has two variables. Among those three data inputs:
The first variable has the value of person names but is named differently with different variable length. The variable type is Text.
The second variable "Age" has the same type and length.
The data "LengthBig" has a first variable "Name" with a length equal to 30.
The data "lengthSmall" has a first variable "FirstName" with a length equal to 10.
The data "lengthMiddle" has a first variable "GivenName" with a length equal to 18.
When merging the data "LengthBig" and "LengthSmall" by rows (use "merge Cases" node with the default setting), the variable "Name" that has a larger length between those two, will be selected as the final column name in the merged data.
In contrast, when merging the data "LengthSmall" and "LengthMiddle" by rows, the variable "GivenName" that has a larger length between those two, will be selected as the final column name in the merged data.