xoros - you want the Collision Layers property for the behavior to do that. It takes 8 hexadecimal digits to give you 32 possible layers, but I just use 0's & 1's, giving me 8 collision layers.
In your example, this is how I'd set up collision layers for each object:
10000000 - A
01000000 - B
01000000 - C
11000000 - D
11000000 - F
So you can see each column in the matrix is a layer, & any two objects in a column sharing a 1 will collide.
Here's a more complex example where A doesn't collide with B & C, but collides with D & F.
B doesn't collide with C or D, but does with F.
C collides with D, but not B or F.
D collides with A, F & C but not B.
F collides with A, B & D but not C.
10000000 - A
01000000 - B
00100000 - C
10100000 - D
11000000 - F
Then you could extend this by giving all instances of a particular object a Collision Group number (which is just a single integer). Objects with the same non-zero group number won't collide.
This is handy if say object F is physics debris & doesn't need to collide with other F's for performance reasons.