Was it God or Jesus?

When you were Mormon did you ever struggle to differentiate between Jesus and God? I feel like I’ve had moments that were “tender mercies” (like praying for a hug and running into someone random I grew up with and them giving me a bear hug). But I never could decide if that was Jesus and the atonement or just God looking out for me lol

No one was ever able to explain this to me. And although it’s just a hypothetical now and I don’t necessarily believe in Jesus, I’m just curious how you rationalized this?