[MusicXML import] incorrect instrument parameters due to incorrect identification
As MusicXML lacks a number of the instrument parameters supported by MuseScore, the current MusicXML importer tries to find the MusicXML instrument in MuseScore's instrument definitions in instruments.xml to obtain the missing parameters. The importer searches for MusicXML instrument-name, instrument-sound and midi-program. Unfortunately, neither of those uniquely identifies an instrument in instruments.xml, which sometimes leads to incorrect instrument identification.
E.g. the Overture file attached to #287131: MusicXML import ignores string/fret contains a guitar track, but MuseScore 3.6.2 incorrectly detects the instrument as a 3 string bouzouki.
Furthermore, results of the instrument search may depend on the exact content of instruments.xml and may change between MuseScore releases. The Overture file mentioned above did import correctly in MuseScore 3.5.2.
Comments
Relates to #270643: [EPIC] MusicXML import/export issues