Both are basically just sugar. Whoever gave you that suggestion probably owned a supplement store and was trying to sell you something.
The key when choosing carbohydrates is to choose low GI carbohydrates. Those will raise blood sugar the slowest.
For example, white rice has a much higher GI index and will raise blood sugar much faster then brown rice. White rice has the hull of the rice bran removed which makes it digest much faster. Brown rice is unprocessed and contains the whole rice grain. Brown rice contains more fibre and is slower digesting and will raise blood sugar much slower as a result.
The best carbohydrates to base your diet around are brown rice, oatmeal, quinoa, and sweet potato. Along with fruits and vegetables of course.