Baldur's Gate 3 is one of the closest representations of Dungeons & Dragons put to video games. It accurately recreates most of the D&D 5e ruleset, from turn-based combat to the ability checks characters have to make. However, Baldur's Gate 3 is not a one-to-one replication of the game.
Source:https://www.cbr.com/bg3-dnd-5e-rules-changes/