If a guitar was an abstraction layer that was implemented by low-level bagpipes then a) that would be awesome and b) guitar players would find their guitar playing to benefit from bagpipe lessons. At the very least they'd be able to understand and maintain their guitar better.
You can't play most of the same songs on both. Bagpipes (well, most forms of bagpipe, there are dozens, but unqualified people tend to mean the Scottish "Great Highland Bagpipe") are a diatonic instrument playing a just-intonation scale tuned to not cause discordant notes with their own drones, while guitars are a chromatic instrument fretted to play an equal-tempered intonation. The GHB plays in something rather close to the modern Mixolidian A mode with an augmented 4th, not any of the major or minor keys of modern Western music. The GHB and the guitar are entirely incompatible instruments, unless you're talking about a classical guitar with tied-on gut frets that could be replaced to allow playing the GHB scale.
To clarify in case of insult: by "but unqualified" I mean "but, without qualification as to which type of bagpipe". I had no intention to insinuate that "unqualified people" are the only ones who talk about the Scottish Great Highland Bagpipe! I myself will say that I "play the bagpipes" or "am a bagpiper" when referring to the GHB, even though I also play Ceilidh pipes sometimes (a different, smaller sort of Scottish bagpipe with a different drone tuning). I don't play the Irish Uillean Pipes, Galician Gaita, Northumbrian Smallpipes, any of the German, French, Italian, Greek, or other sort of bagpipes. Unqualified, bagpipe usually means Great Highland Bagpipe.
I'll try to simplify: you can't readily adjust the tuning of a bagpipe; it's tuned in a way that would make it sound horribly dissonant against other instruments (for important music-theory reasons); and it doesn't even play all the notes, so you can't play in all the major and minor keys of Western (== European from c. 1580 onward + American) music tradition - you're stuck with scales that only make sense for the genre of music that's specifically written for the instrument.
What you're trying to say is that assembly is like the bagpipes and impractical. What I'm trying to say is that's a terrible metaphor because the main reason to learn assembly is understanding what your non-assembly code is actually executed as.