Similarities in neutron star and black hole accretion