It's interesting, looking at chimps and bonobos it appears that both of those general strategies is employable, with bonobos being stranger friendly and chimps being stranger averse: https://www.sapiens.org/evolution/bonobos-meal-sharing/. Not exactly the same as what is being talked about here, but doesn't seem far off - note the mention even of bonobos preferentially sharing with strangers over friends and family.