Sure, but their energy budget includes everything. They don’t have the luxury of importing energy others invested into decades ago when convenient and having it be off balance sheet like Denmark does.
China would actually have to build stuff to do that. Denmark can just pretend it doesn’t exist.
> China would actually have to build stuff to do that.
and they do. Unlike Denmark, China is the world's factory and can use the windfall from exports to fund projects and have them on its balance sheet.