Read the initial quote:
No German officer in WW2 was wearing his ceremonial sword anywhere near the frontlines, any more than he was wearing his ceremonial dress uniform on the frontline. Frontline officers weren’t even the ones given ceremonial swords in Germany in WW2. Japan, on the other hand, not only mass-produced ceremonial swords, but they were also worn in the field, not just in formal dress uniforms, and not only by officers but also by NCOs. Guntō - Wikipedia - Military usage.
They were also used in the field as well. The history of the Pacific War is littered with accounts of Japanese officers and NCOs brandishing said swords leading so called “banzai charges” - gyokusai attacks, lit. “shattered jewel”, figuratively suicide charges aimed at achieving honorable death instead of being captured alive.
They were also used for less honorable activities. During the Rape of Nanking, there was a contest reported in Japanese newspapers of two lieutenants having a contest to be the first to behead 100 Chinese ‘enemies’, i.e. defenseless prisoners.
Japanese Media Followed the Report on the “Competition of Killing 100 People” 82 Years Ago | The Memorial Hall of the Victims in Nanjing Massacre by Japanese Invaders
On December 13, 1937, Tokyo Nichi Nichi Shimbun (lit. Tokyo Daily News) published an article with the headline reads, ‘Incredible Record’ - Mukai 106 – 105 Noda—Both 2nd Lieutenants Go Into Extra Innings", and attached a photo taken for them by Shinju Sato near Changzhou city.
In fact, this is the newspaper that tracked the series report on the Beheading Competition for the fourth time. Since November 27, 1937, the two lieutenants started the competition in Wuxi after its capture by the Japanese Invaders, and the newspaper’s three correspondents (Asami, Mitsumoto, and Yasuda) interviewed them in front of Changzhou Railway Station.
The first report on Tokyo Nichi Nichi Shimbun on November 30, 1937 was titled Competition for beheading 100 enemies! Two lieutenants already got 80 people. “Two young lieutenants of Katagiri Unit started the Competition of Killing 100 People. We heard that since Wuxi, soon one has killed 56, and the other 25.” One lieutenant was Toshiaki MUKAI, 26, of Toyama Unit; the other was Tsuyoshi NODA, 25, of the same unit.
It was also commonly used as a means of executing captured Allied airmen
ETA: the prized German trophy item was actually the SS ceremonial dagger, which was worn by officers in field uniforms: SS-Ehrendolch - Wikipedia
As of 15 February 1943, all officers of the Waffen-SS were entitled to wear this dagger also with the field-grey dress uniforms. For these occasions, the dagger was fitted with a tassel and sword knot made of aluminium lace, similar to one used by Wehrmacht officers.