I assume that you become lawful permanent resident by marriage to US citizen and now you have a 2 year condition on your green card.
In this case, you would need to file removal of condition jointly with your spouse 90 days before expiration date on your green card. Getting divorce prior to this 2 years will definitely jeopardize your status unless the divorce has grounds on certain issues such as domestic violence, imprisonment, incurable mental illness, etc. which you must have proofs that those things happen, you entered marriage in good faith, and you have good moral character. The chance is 50-50 unless you have concrete evidences and witnesses.
If you think of getting divorce because of incompatibility, I would suggest you put this on hold until you get situated. No-fault divorce means your spouse can withdraw sponsorship and you are facing removal.