Benefits of dynamic arrays over queues

Hello,

I wanted to know the exact scenario or a practical use case where dynamic arrays are inevitable/non optional.
As per my knowledge almost everything a dynamic array is capable of doing a queue can do the same as well.

Thanks

In reply to Aryan:

It’s a matter of intended use. Queues are optimal for access to the front/back of the queue. You pay a performance penalty for accessing elements in between. Dynamic arrays are much more efficient for accessing random elements. They are also more space efficient, so copying them also has better performance