I'm FODMAP and Nightshade sensitive along with a whole bunch of other things!!
Definitely cooked veggies are easier to digest and highly recommended for those who have issues. Some fruits they recommend removing the peel (ie: apples) for those of us with compromised digestive tracks. (GAPS recommends applesauce for tummy issues but to remove all peels before cooking them)
Raw foods are much much harder to digest and will cause more strain on your system to break it down, creating more gas; you'll feel the results of this as your system is working harder.
Bonus question: not a scientific answer but compare a raw and cooked carrot, the cooked carrot is very tender and sweet and hardly needs chewing to swallow it. Once this hits your digestive system it is in a much better state to digest and doesn't demand as much effort for your system as a raw one would.