For now you can learn all spells as a wizard in bg3, so pure wizard can have inflict wounds as a melee attack which is superior to any weapon attack, but ofc it eats up a spell slot...