One thing you must not forget to also consider is that, most things are easier said than done, most people in a bid to look or appear honest, most especially on a public forum as this will sure say that they will not cheat if they have the opportunity, but wait until the opportunity truly appear before them, then alone are we going to know who actually is honest and who is not..
Few days ago, while I've converted some bitcoins earned from my signature campaign to fiat through a crypto exchange and requested withdrawal to my bank account, i had the opportunity of cheating the exchange because they sent the money twice, money equivalent to $100 was sent twice to my bank account, just then, several thought began running in my head, i thought of keeping the money, and even when i decided i will return it, i waited for the exchange to contact me first, but they didn't, after the third day, i got myself up and contacted the exchange and told them the money i requested to withdraw 3 days ago was sent twice to my bank account, after they verified it was true, they provided an account and asked me send the other half to it, i did and after they verified receipt of the fund, the customer care i was in contact with told me that the entire management of the exchange is saying a big thank you to me, i was really happy and proud for doing what is right.
I tell you sincerely, Many will fall at the fore front of such temptation.
You did the right thing, congratulations. Days ago I also faced a similar situation. A product I had imported in the beginning of 2023 was misplaced in the middle of the way, and nobody could provide accurate informations on what had happened to the package, so I asked the company to reimburse my money. With some delay they did it and the story seemed to be ended. However, the package suddenly arrived in my address few days ago, against all my expectations, because I wasn't even thinking about it anymore.
So the first thing which came to my mind was the fact the company which made the sale was in disadvantage. I could simply ignore it and get the package for free and consider myself a lucky person to have access to such "benefit". I wouldn't have any negative consequences for me, anyway, from a legal perspective. However, I contacted the company and told them what happened. They asked me to repay the product and I did.
The best thing you can do is to be fine with your own conscience. Cheating doesn't bear good fruits, including in gambling.