Wow! This is arguably the real E34 M5 competitor and not the 500E sedan. Both straight-6, track-focused sedans. And yes, you could technically order a sedan-style two-door car as it was common back in the days. (I'm sure they made some four-door ones on the side.)
500E was more like Hartge H5 (and to some degree, Alpina B10) competitor.