Can I use some advice in building a new character? I'm pretty new to DnD 5e. I started my first campaign with a group of friends and after 4 sessions later, I lost my Warforged Artificer character in a high risk situation... 

Please don't ask how. 😅

There is a chance of receiving the character but I kind of want to move on due to realizing how difficult the class can be to operate as a beginner. 

For my next character I'm trying to debate if I want to try a Sorcerer or a Warlock class for my new character that I have a roll up. The good news is the DM will let the character be level matched with the party (LV 5) since we are leveling via milestones instead of the xp system. 

For a beginner, which one of the two classes would be better suited for a beginner?