It is, even brand new one.
I can find several middleweight tourers / adv bikes between £12k-£25k new. And that's middle/top shelf. I can even get something new under £8k if I don't need the most modern electronics and 650cc is enough.
Comparing that to the car? LOL, 5 year used car like, say, Hyundai Ioniq is £15k+
And every other bit of the maintenance is more expensive in the car. Literally every single one. Also taxes and insurance.
Gear? Yeah, boots once every 10-15 years, gloves/jacket/trousers/helmet every 5 years,
Still cheaper.