Common envelope formation and the merging of degenerate dwarf binaries