Offchain transactions
Coinbase will do an offline transaction depending on whether the recipient address is part of coinbase wallet. If recipient address is part of a coinbase wallet then the tx can be easily done offline, otherwise the tx has to be on bitcoin blockchain.

If you use wallets like electrum/mycelium they will always do onchain transactions.