Sadly, I think traditional wd40 has the edge on dish soap for the express purpose of removing grease and oil from a chain.
Dish soap/detergent needs water added to "activate", that is provide a carrier for the soap molecules to move through, and orientate their hydrophobic end into the grease/dirt. Without water the hydrophobic end has nothing to be scared of!
Personally I think a proper degreaser will be superior to both, but there's little point wanting on things you can't get.
On that note, dish soap is probably a lot cheaper than WD40. I would imagine blowing through a quarter of a can to clean a chain. You can buy the same stuff in bulk in a bottle rather than a pre-pressurised aerosol, which is intended for self-fill pressure sprayers or drip-lubrication on aluminium cutters.