It's more like buying cash equivalents with a credit card like Visa gift cards and then liquidating them to pay off said credit card. Your cost is the purchase fee and any costs to liquidate the card. In some cases you can actually profit from this I.e buying Amex gift cards through a cash back portal.
Buying expensive things at Nordstrom, returning and refunding onto your debit card and then paying off your credit card?