BG1 and 2 your race and class had almost no impact at story unless you used mods which corrected it said you were half-orc mage? They treated you the same as if you were a human mage

DA:O was the best game in the cursed trilogy your origin and class made a huge impact on the story for example you could enter the fade by yourself and made a deal with the demon either by teaching you the blood magic, having a good fuck (ikr) or giving you additional skill points alternatively you could fight her or when you were human noble fighting one said noble near-end was personal for you. DA:2 butchered character creation so your origins and race were always the same only class made difference in the story and DA:I tried to mimic DA:O but your origins were almost the same and only your race and skills made small changes to how the story went.

Witcher games were sequels to the books and even then they've done it well your race made a huge impact on the story.

TES is complicated and depends on which game you are talking about but in general, races had always small impacts on how the story went your class didn't matter that much as you could be anything.

In Mass Effect your origins made small changes your class had big changes.
I haven't played Divinity games but I have them in my steam games collection as I couldn't afford the time to play them all.