I got a full 88 Key Digital Piano for making music.
The piano is the best instrument to know for making beats or any other electronic composition because the piano has the full range of musical notes, scales, chords and expression, unlike a guitar because on a piano...you play 10 notes at a time vs 6 on a guitar.
Second....the midi keyboard is based off piano....
If you don't know shyt about chords or melodies...the theory behind the music...then it's gonna be pretty fukking hard to compose anything...and knowing piano...like starter level kid piano...will help you tremendously...
So get a piano...
Most songs are made on the piano...
Most songs are modeled off the piano...
I start everything with a damn piano...and then convert it to synths and etc...cause if it sounds good on the piano...then I just gotta pick my instrument in Serum...
Guitar is cool to know and learn...but electronic music is piano based...
If you was making folk, country or rock songs, it would be different.