Is entertainment important to you? Some LH flights to India (9+ hours long) still don't have acceptable IFE. The same could be said of some EK flights, but those are only 3.5 or so hours.
On the other hand, 17 hours in Y is never pleasant, and you would be doing that twice between LAX and Dubai.
I would say go with *A, but if you see yourself flying this route again maybe try EK next time?