Good advice so far.

Most likely, the insurance company will make the check out to you and the Lien or Lease holder. You would need to endorse the check and send it to the Lien/Lease holder. If you don't fix the damage, the money will buy down your loan.

If it's leased, the lease company will want you to get it fixed, unless you decide to buy the car at the end of the lease term.

If purchased, the bank will either send the check to the body shop you choose, or if you don't repair it, the bank will apply the check to your loan.

If you own the car outright, do what you want with the check, fix it or not, your call.

What K1500 said applies as well.