We do have ACH (single nightly batch), same day ACH (four? batches throughout the day), and the new FedNow (immediate). But all of those involve providing account numbers and we don't like to provide those (both payers and receivers prefer not to give the other participant their ach numbers). Also, there's not a consistent way to link a payment/debit with an invoice, because memo fields don't necessarily show up with the payment.
Also, credit card purchases can be reversed without the cooperation of the merchant. Most issuers are generous with chargebacks (at least historically). You could take a merchant to court if you did a wire transfer, but that's expensive and time consuming.