This has no relation to ternary operator. It's about type juggling and comparison.
In second case, you're doing 'B' || 'C'
which will be treated as true
- since ||
is logical operator. So 'A' == true
is true because of type juggling, thus B or C
will be your result