A hydrocele is the accumulation of fluid in the scrotum whereas varicocele is the enlargement of the veins within the scrotum.