For generator interconnection, a transfer switch or interlock at the panel prevents backfeeding the grid
https://waylontauv386.capitaljays.com/posts/inside-the-electrical-panel-breakers-buss-bars-and-more
For generator affiliation, a transfer switch or interlock at the panel avoids backfeeding the grid, safeguarding utility workers and devices securely.