I can share some information with excluding transactions from 1099-NEC, @priyanka-emerson.
Payments to 1099 vendors made via credit card, debit card, or third-party system, such as PayPal, are excluded from the 1099-MISC and 1099-NEC calculations.
QuickBooks always depends on the information entered. I suggest going to the bank register page and verifying the payment method being used and making any changes if necessary. This way, it can be excluded from your 1099-NEC.