I am not looking for a relationship, I have female friends, but I dont masturbate because i know that it is a bad sin. I just want to know if having friends of the opposite sex is worse than masturbation
If having friends of opposite sex leads to any forbidden activity, from flirting, having animated communication to masturbation, then having such friends is forbidden. If not then its better to avoid such types of opposite sex friendship relations.