There are three ways an account can go negative, and they are three different legal events. Distinguishing them is the whole job of this page, because the cost and the rights attached to each are different.
The linked-account transfer moves money you already have, usually from a savings or money market account at the same institution, and sometimes from a second checking account. Nothing is borrowed, so no interest accrues. What the institution charges instead is commonly a flat fee per transfer, and the amount varies enough between institutions to be worth reading in the fee schedule rather than assumed. Some charge nothing. Two mechanical details decide whether this works in practice: whether transfers are made in the exact shortfall or in fixed increments, and whether the linked account has to hold the money at the moment the item posts, which it often will not on a day when several items arrive together.
The overdraft line of credit is genuine credit. Because it is subject to Regulation Z, the balance accrues interest at a stated annual percentage rate from the day it is advanced until it is repaid, and it brings the Regulation Z apparatus with it: periodic statements, a disclosed rate, and the written billing-error procedure. It also has to be applied for and approved, so it is not available to everyone and the decision usually involves a credit check. Some institutions charge an advance fee per draw on top of interest, which changes the arithmetic considerably on a small shortfall.
The discretionary service is the one the opt-in rules reach, and it is the one that produces the flat per-item fee people mean when they complain about overdrafts. That mechanism, the narrow scope of the federal permission requirement, and how it differs from a returned item are covered on the overdraft page and are not repeated here.
The comparison worth internalizing is not fee against fee, but cost against amount advanced. A flat charge is a small number in isolation and an enormous one relative to a shortfall of a few dozen dollars. Interest at an ordinary consumer rate on the same shortfall for a few days is measured in cents. That is why the ranking between these arrangements almost never turns on the headline rate.
One quirk of a joint account carries over into every version. Regulation E treats the affirmative consent of any one holder of a jointly held account as consent for the account, and a revocation by any one holder as revocation for the account, so one person can switch the discretionary coverage on or off for both. Where the arrangement is instead a linked transfer or a credit line, the account agreement rather than Regulation E controls, and the two holders' positions are set by that contract.
What none of these arrangements does is create money. A linked transfer works only while the linked account has a balance; a credit line works only up to its limit and leaves a debt behind; the discretionary service is not a commitment, and an institution can decline to pay an item whether or not it has paid one before. Each of them buys time and avoids a returned payment. None of them addresses a month that does not balance.