It depends which transaction will be confirmed first.
you can control your memory pool size with -maxmempool=n command, where n is size in mb (how i remember). By default your unconfirmed transaction will be deleted from mempool after 14 days from creation. Also you can use -zapwallettxes command to clear all unconfirmed tx from your wallet. (also you can try to delete mempool.dat file when your wallet if off and then restart it)
Also, read this good article - https://bitcointalksearch.org/topic/all-about-stuck-transactions-and-what-you-can-do-to-fix-them-1802212