I'm 26 and recently came into $50K. I've got a $27K car loan — should I pay that off or invest all the money?

I'm 26 and recently came into $50K. I've got a $27K car loan — should I pay that off or invest all the money?