@drstevejsock You're just making daft statements now.
But do the maths. £150pcm into the pension - but to earn that net, you'd have to earn £190 gross. Then add the employer's contribution - let's say 3%, so another £75-80, if you're earning £40k like OP is. So every month, your pension increases by around £265 per month, for a cost of £150.
So you're gaining
far more than 30% of your £150 investment, courtesy of the taxman and your employer's contribution - and that's before you factor in the compound growth.
Let's say it took OP 2 years to clear the £7k debt. During that time they'd have added over £6k into their pension, plus any growth they got from it. Alternatively, if they scrapped the pension and put all the money into their debt repayment, they'd have only reduced the debt by £3600 more.
So it's not as simple as you suggest. I'm sure somebody could spreadsheet it out, but I think you'll find that OP would not save enough money over the 2 years of interest to warrant skipping their pension contributions - because they'd lose out on nearly £130pcm of tax and employer contribution during that time.
To answer your (somewhat strawman) question - if the 30% credit card debt going into my pension also accrued the tax relief and an equivalent contribution from my employer, then yes, I probably would.