A comparison of the dielectric and plasma wakefield accelerators