Hi Desdator,
Welcome to the group!
Technically both car have exact same platform, both using same 2.0 liter B48 four cylinder twin turbo but 520i tuned to more conservative outputs of 184hp and 290Nm.
Other than that it’s basically the same car, of cause it also depend what are the additional...