Comparing galaxy formation in semi-analytic models and hydrodynamical simulations