In what direction does D.VA eject from her Mecha?
She ejects out the back of it, so she's left standing directly behind where the mech died. The reason you can't predict where she's going to go is that as soon as she's ejected out the back, she has a moment of invulnerability where she is free to move and dodge attacks. This is to prevent players from immediately one shotting her as soon as she pops out the back of the mech.
According to these two sites, Icy Veins and Furious Paul, players can control the direction of ejection by using the movement keys. The default direction is backwards.
This matches with my own experiences.
From Furious Paul's D.Va Overwatch guide:
Steer D.va's Ejection
When your mech gets destroyed, you can hold down the direction you want D.va to eject out at and she will jump out that direction. This means you can hold your strafe, forward, and backward keys down while getting ejected and she will pop out that direction. By default, if you don't press any movement keys, D.va will eject backwards away from her mech.
I play a lot of D.Va and can confirm that I try to eject in the direction that will put the mech in between me and enemies and/or get me closest to cover.