Good deal yes, if you go by point value alone, 2 rooks are worth 10 points and a queen is worth 9. Obviously there are minor nuances where a queen might be better in fringe cases but two rooks are going to be better most of the time.
two rocks or one queen?

It depends.Some general guidline is this - the more open the position is, 2 rooks are more likely to overpower a queen. Also, it depends if rooks are coordinated or can be easily coordinated. If they can and queen can't take some pawns in the meantime, rooks are more likely to be better.

I'm no chess expert, but I'll try to help. TLDR at the bottom.
The queen has more moves, but if the rooks are well placed, they can be quite annoying. One example is two rooks on the seventh or second rank, which can target weak pawns:
Rooks should also be placed on open files.
The queen, however, can win with its extra moves if the rooks are badly placed, or if the side with the two rooks has weak pawns, such as in this position:
TLDR: If you have the two rooks, put the rooks on open files and try to put them both on the second rank(if your opponent is white) or the seventh rank(if your opponent is black.) If you have the queen, try to target weak pawns, and prevent your opponent from putting the two rooks on the seventh or second rank. Anyways, best of luck!

computers are dumb. I play "automate" - a chess variation here in chess.com, so you can have bishops of the same color, so I played against someone, and the engine sac-ed my queen for 3 bishops *of the same color* - light sqaures - this is worthless - the opponent's queen and king simply marched on the dark squares - undisturbed, and checkmated my king...
---
2 rooks or a queen... depends - if your enemy king can hide behind pawns - that is, if these pawns are diagonal to each other - then he can very easily escape the rooks, and even march forwards against the enemy king - these rooks are worthless.
so, it simply depends on what these rooks are able to do in that given situation.

When I analyze a game w/ the internal engine, it suggest me to lose my queen and gain two rocks.
Is this a good deal?
Thanks for your comments.
mau——
Me... personally... prefer one Queen.
But it's my personal choice.
I like women.

I'm no chess expert, but I'll try to help. TLDR at the bottom.
The queen has more moves, but if the rooks are well placed, they can be quite annoying. One example is two rooks on the seventh or second rank, which can target weak pawns:
Rooks should also be placed on open files.
The queen, however, can win with its extra moves if the rooks are badly placed, or if the side with the two rooks has weak pawns, such as in this position:
TLDR: If you have the two rooks, put the rooks on open files and try to put them both on the second rank(if your opponent is white) or the seventh rank(if your opponent is black.) If you have the queen, try to target weak pawns, and prevent your opponent from putting the two rooks on the seventh or second rank. Anyways, best of luck!
Yours are good examples, really.
But maybe our experts say their wise word on this subject ?

When I analyze a game w/ the internal engine, it suggest me to lose my queen and gain two rocks.
Is this a good deal?
Thanks for your comments.
mau——
Rooks... not rocks.)
Rocks are other things.
You can not play Chess with rocks.

When I analyze a game w/ the internal engine, it suggest me to lose my queen and gain two rocks.
Is this a good deal?
Thanks for your comments.
mau——
rocks?
your chess engine is asking you to sac your queen for 2 rocks?
wow yes ik the OP meant "rooks" not "rocks". Im dumb but not too dumb

the rocks are so powerful but if i had to pick i would prefer the queen in time pressure but the rocks are better in open spaces. I sometimes throw the rocks for a more powerful rock and good bishop and control. To answer the op question, the two rocks are sometimes better than the queen, but if it was a random position, I would have to pick the rocks

rocks are superior to queen because if you throw a rock against a queen, then the queen will probably break

the rocks are so powerful but if i had to pick i would prefer the queen in time pressure but the rocks are better in open spaces. I sometimes throw the rocks for a more powerful rock and good bishop and control. To answer the op question, the two rocks are sometimes better than the queen, but if it was a random position, I would have to pick the rocks
Usually I pick up the rocks only when I want to throw them in my opponent.
All know... rocks are working class people's weapon.
When I analyze a game w/ the internal engine, it suggest me to lose my queen and gain two rocks.
Is this a good deal?
Thanks for your comments.
mau——