Hopefully this is what you're looking for.
varListA contains the following data.
[
{
"Name": "Sample 1",
"Amount": 110
},
{
"Name": "Sample 2",
"Amount": 200
},
{
"Name": "Sample 3",
"Amount": 200
}
]

varListB contains the following data.
[
{
"Name": "Sample 1",
"Amount": 110
},
{
"Name": "Sample 3",
"Amount": 200
},
{
"Name": "Sample 4",
"Amount": 250
}
]

The highlighted items are missing from the other array. For example, Sample 2 is in List A but not in List B, and Sample 4 is in List B but not in List A.
Filter array List A will return items in List A that are not in List B.


Filter array List B will return items in List B that are not in List A.


Compose uses a union expression to join the items from Filter array List A and the items from Filter array List B, giving us a list of all the items that are different across both arrays. The expression used is:
union(body('Filter_array_List_A'), body('Filter_array_List_B'))


----------------------------------------------------------------------
If I've answered your question, please mark the post as Solved.
If you like my response, please consider giving it a Thumbs Up.