Similarly, you can choose sugar pairs to promote or suppress crystallisation, as the recipe style requires. This is done by selecting sugars with similar or dissimilar molecular geometry and charge distribution.
I have done quite a bit of cooking with erythritol, simply swapping sugar out for it, and it usually works great. Erythritol is only about 70% as sweet, so it can sometimes be necessary to adjust for that, but really, most things are already overly sugary, so it's usually unnecessary.