Do you force your child to hug?
I have never forced my child to hug anyone they didn't want to. I believe that children have bodily autonomy and should be able to say no. What I would do is ask if they would do a high five instead. This became very important with my son when he was younger, he did not like people invading his personal space at all. He was just fine with a high five though.
This article highlights other reasons you may not want to coerce your child to hug anyone, even family members. How do you feel about this?