Traveling with electronics is always fun, especially when you need an adapter to charge them. Your challenge is to make planning a trip a little easier by checking if a given plug will be compatible with a given socket.
Given a plug type and a socket type, return a value that indicates whether they will work together or not.
Socket Accepted plugs | Plug Accepting Sockets A A | A A, B B A, B | B B C C | C C, D, E, F, H, J, K, L, N, O D C, D, E, F | D D E C, E, F | E D, E, F, H, K, O F C, E, F | F D, E, F, H, K, O G G | G G H C, E, F, H | H H I I | I I J C, J | J J K C, E, F, K | K K L C, L | L L M M | M M N C, N | N N O C, E, F, O | O O
The tables show the same information, only transposed.
The input will be given as two uppercase or two lowercase letters (you choose).
Inputs will always be
/[a-o]/), there's no need to handle invalid inputs.
You may accept the two inputs in any order (please specify which).
Input can be taken in any reasonable format (string, stdin, array, ...).
If you take both inputs in a single string, they can be separated by no more than one character and there must be nothing surrounding them
Output can be returned in any reasonable format.
Output must be either
falsyor one of 2 constant values
any positive number,
an even number/
an odd number,
more than 1
Using the format
A, A => true I, K => false O, C => true C, O => false E, F => true F, E => true
Standard loopholes are disallowed.
This is code-golf so the answer with the fewest bytes in each language wins.