I will try to clarify this , that karma and free will both matters in hinduism. I am a Hindu and not trying to poke anyone , just saying it to clarify things for debellator brother , will try to give examples as well .
So some certain events in our life are meant to happen , few things arenāt in our hands , they are called Prarabdha Karma (past karmas ) , so if a person is born in a certain family , environment whether good or bad , loving or abusive , itās because of their Prarabdha Karma , we can say itās like fate , which we canāt change . So itās always preferred to do good deeds , that is good karma.
And how can we do the good deeds/karma , by our own understanding and free will , we ourseleves use free will everyday ! And I donāt remember the name , for doing karma according to free will , choosing the path of right or wrong but thereās a term for it like past life krma is termed as Prarabdha Karma.
Karma is a cycle not an infinite loop .
for example , there are two partners letās say ABC and XYZ , so ABC cheats on XYZ because of their own will , they had a choice to refrain from it but they cheated on XYZ , that doesnāt mean that XYZ cheated on ABC in past life , ABC created the bad karma because of their own will . Even if XYZ leaves and forgives ABC , karma wonāt forgive and leave ABC , they will have to face it someday , in the form of cheating in relationship or finances , or some really major issues, but they will surely get it .
Above one was related to modern world example . Will try to give instances from Mahabharat and Ramayana . Ramayana took place before Mahabharat .
Shree Ram was incarnation of Lord Vishnu , and he incarnated as human. Shree Ram killed Baali from behind, during the duel of Baali and Sugreev (baali was on the wrong side and he did bad deeds) , killing baali wasnāt wrong but killing from behind was , according to the rules , because Baali couldnāt defend himself as he was unarmed and unaware of that arrow.
After Mahabharat , when Shree Krishna was under the tree a hunter, named Jara shot an arrow when Shree Krishna was unarmed, thinking that he was a beautiful deer , and Jara was reincarnation of Baali and Shree Krishna was another incarnation of Lord Vishnu . Shree krishna was aware of this happening and this was inevitable . To follow the nature rules and completely accept the curse of Gaandhaari , he left his human form so does this mortal world . There are many other stories regarding this like the curse and his heart .
So this concludes the concept of Karma , as it was started by Shree Ram(Lord Krishna) and ended by Jara (Sugreev), the karma was settled.
Regarding free will .
There was instance where Shree Krishna made Bhishma Piatamah realise his mistakes and gave up on his immortality (icha mrityu , death as per their will, Shree Krishna could kill him but he made him realised his mistakes ) , so on his own will (after realisation) Bhishma Pitamah accepted his defeat .
Karma is like the deeds(good or bad) that you do they will come back to you, if not now then some other time , but it will come back to you for sure .
Free will is like , when something bad happens and someone suffer , few people make the world suffer and few people make sure that others donāt suffer from the issues.
Itās like karma but itās in our hand to choose whether we try to do bad or good karma.
So yeah , and I personally feel that bad times are there to test the faith in God and we value the good things and time more . Talking about this after I realised few things after my break-up . Sufferings are for our growth and making us realise few things . I got out of something then I am able to say it , if I would have still suffering from it , I may not have said it , but now I feel āEverything happens for a reason.ā
I tried to tell this from my limited knowledge . Made the examples short to stick to the karma and free will topic . If I will get to know more things I will definitely tell you bhai , if you want .