I run daily comparisons between a gas boiler and a heat pump in the UK. Given that gas is cheaper than electricity, a well-installed and well-controlled gas boiler can still be cheaper to run. Heat pump running costs can drop drastically when combined with solar and battery storage, but that requires a much greater upfront investment.
Seems like a decent place to point out that there are good savings to be had on heat pump running costs with a smart controller designed for heat pumps which can learn the dynamics of your building then preheat when tariffs are low or outdoor conditions are favourable.
I work for homely energy which has such an offering, but fwiw I genuinely think it's a good product. It's been studied by Salford uni in their energy house lab, so if anyone's interested maybe dig into that for a more neutral verdict.
I'm no expert on UK energy pricing, but the main difference between a boiler and heat pump is that heatpump can be, eg "500% efficient" - a COP of 5. So even if a KWH of energy is 2x the price for electricity a heatpump often comes out ahead.