Comparison of finite-size-scaling functions for 3d O(N) spin models to QCD