If you light the yahrzeit candle before it's time to light the Hanukkah-menorah, you may light the yahrzeit candle first.
Otherwise, once it's past sunset, you should wait until about 20 minutes after sunset, light the Hanukkah-menorah, and afterwards light the yahrzeit candle.