Let's say I have a mock data that looks like this:

I want to pair a row with RECEIVE AND DELIVER for each order.
For example:
in Order 1, we will have 2 pairs (ID 2 and 4) and (ID 1 and 3).
in Order 2, we will have 1 pair (ID 1 and 3).
In Order 3, we have no pair because both are "DELIVER".
and then filter them so those rows that have a group will be in TRUE.
I am unable to find a way to do this... Any help would be greatly appreciated.