The simple answer is: Either… or Both.
Electric lends itself to lead guitar better because of the lighter strings that facilitate string bending and other techniques often used in solos. The lighter strings can also be easier on a beginner’s fingers. On the other hand, you’ll need more equipment at all times to use, such as an amplifier and cables. .
An acoustic guitar can be strung with lighter or ‘Silk & Steel’ strings to make playing easier on a beginner’s hands. No Amp or cables necessary, so it’s easy and portable to bring with you anywhere and just start playing!
Nylon string guitars are also a popular choice for young beginners because the nylon strings are a bit easier on the fingers.
Eventually most guitarists will want to own at least one of each.