China has those luxuries .. with a land area some what larger than Denmark, Norway, and Sweden combined it has areas in sunlight when others are dark, areas that are windy when others are not, large hydro schemes internally, a good number of nuclear plants to draw from and, perhaps most importantly, an ongoing build out of HVDC transmission lines across long distances and the means to keep building battery farms.
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.