Pivot table
In Relational Database terms, that is an Associative Table.
What you have is a need, such that designated rows in Table_A are related to all rows in Table_B; and the rest re related via Table_A_B. The great Dr E F Codd asks us to think of data in terms of sets. There are two sets in Table_A. Let's call the first set All_B and the second set Specific_B, for which Table_A_B identifies the specific relations.
Therefore is not a "default" relationship, it is two separate relationships, based on the Subtype.
You don't need the "default" relationship you described. That would result in masses of rows that serve no purpose, because the rows in Table_B for All_B are known, they do not need to be stored.
You don't need triggers (which would have been necessary to keep inserting Table_A_B Rows whenever an All_B row is inserted). Ugly as sin.
The correct method is to use Exclusive Subtypes, named for the sets, where:
Specific_B is related to Table_B, via Table_A_B
Table_A itself, and All_B, are related to nothing.
Your code can determine which Subtype any Table_A row is, and join Table_B accordingly:
Picture
Typical XOR Gate • Table Relation Diagram
An Exclusive Subtype requires a Discriminator column in the Basetype.
If you don't want to bother with full Relational Integrity, then sure, an Indicator column in Table_A will suffice. That is the Discriminator column in Table_A, minus the Subtypes.
Response to Comment
This is the first time I learn about the concept of exclusive subtype. Now I know how to solve the problem
In that case, study this document on Subtypes. The links include code that you will need, such that the integrity is Declarative. If you would like a full discussion, and particularly to avoid ugly methods to enforce "integrity", read this answer.