Mercury Vapor Lamp with Metal Halide ballast?

I’ve heard that Mercury Vapor and Metal Halide lamps are basically interchangeable as far as far as magnetic ballasts go, provided the correct wattage lamp is used. Does this also hold true for dimmable electronic ballasts as commonly used for grow lights. Will this

Drive a 400 watt Mercury Vapor lamp?

but they’re not interchangeable.