Unlike the similar Xnest, Xephyr supports modern X extensions (even if the host server does not) such as composite, damage, and randr.
Unlike Xnest, which may lack support for modern X extensions, Xephyr includes support for composite, damage, and randr, irrespective of whether the host server has them or not.