Anti-siphon traps do work (but we don't know which appliance will induce a siphonage on the other so not sure sure which trap might need one) but can be noisy and normally use a mechanical air inlet component that will eventually fail (though a resealing bottle trap does not have this problem). Fitting such traps to make an existing and defective installation work is perfectly acceptable, but here we are discussing a brand new installation. 50mm shared waste is a bit of a grey area and circumstances will dictate how grey the area is. As 4m is already on the edge of acceptability, my inclination would not be to share the waste, but as this is DIY, the time spent faffing is not chargeable, and field testing might well prove a shared waste to be perfectly serviceable.
Once we're into the realms of fitting air inlets/resealing traps, or anti-siphon devices, this feels very much like a bodge if installed from the outset. Obviously it's up to the OP - and as a DIYer he may be fine with it - but I feel I would be doing my own profession a disservice were I not to try to uphold the standard I would apply to my own work. To me, if the rig only works with one of these devices installed, then it's not a good installation.