Our Sorcerer wanted to cast a Lightning Bolt as their attack on a monster that had made it into melee with that Sorcerer. DM said could make the attack, but it would provoke an OA (that would likely kill the sorcerer).
Player argued that as a magic-using character they would be as adept as a Fighter doing a melee attack. The range being Self was integral to the issue. What lies beyond the initial target was not in question. AoE was not relevant.
DM ruled (and yes, whatever he decides is what we go with, I'm here looking for discussion of rules and logic of the situation), that it took enough time summoning the magic that the monster would get a free shot. Player countered that a successful attack would stop the spell anyway.
Player maintained that it was essentially a melee attack he was making as the range was less than 5 feet (starting with the caster) and should not provoke OA.
Which position is correct though? Does casting Lightning Bolt within an enemy's reach provoke an Opportunity Attack?
@Rubiksmoose This question is different enough from your provided generic answered question. Those who are versed in earlier version rules will benefit from the specifics of this question. As well as the specific differentiation between ranged attacks and the lightning bolt characteristics.