My bet would be on being unable to trade a Pokemon holding any item between the two games. Chances are ORAS won't have all Mega's from XY either.of course you will be able to trade back and forth. just not new mega stones. the game will probably give you a 'something is not right' message.
it did that back between red and gold too if you tried to trade with gen 2 pokemon in your party.