I can't really play guitar but decided I should learn... I had an acoustic and and electric...
It really depends what you want to play.
The benefit of the acoustic is you just pick it up and go, no amp, no pedals, no cables... and for learning in a unstructured manner I was that was really good as I played it more.
I sold the acoustic cos the electric was "better", it continued to gather dust and got sold...
a while later I bought another acoustic, it gets played... the electric I bought to learn at the start of lockdown 2020... yep, gathers dust.