Is there someone you could talk with at the company who won't judge you for being honest? If you're going to leave anyways if it doesn't work out, then talking with someone there who might sympathize with you cannot hurt.
If there is no one there you can confide your feelings in then leave.
If there is no one there you can confide your feelings in then leave.