Reading too much into. Don't believe every aspect of the computer analysis you see. Sometimes common sense and intuition prevail.
Why an inaccuracy?

You aren't missing anything: dxe1=Q+ is not an inaccuracy.
This is something that happens because of the way Stockfish evaluations come with some variance and this can be misinterpreted in your Game Review. If you let Stockfish calculate long enough and at higher depth both moves will be shown as equally strong.
My most recent article is about the engine analysis and game review, how they work together and how the feedback for players can be confusing, misleading or even wrong. I'm addressing typical situations where you shouldn't blindly trust the review, including situations exactly like yours. Understanding the mechanisms better makes it easier to interpret the game analysis better.

Technically, the engine is correct for the reasons it gave.
Queen Promotion is considered an inaccuracy because with best play it prolongs the game.
—————————————
Here is Rook line you gave:
31. Kh2 Qf4+ 32. g3 Qf3 33. Qh7+ Kxh7 34. a5 Rh1#.
The Key part to focus on is on move 33.
White can play any move they want to save themselves from the mate.
It just so happens in this position White doesn’t have any saving move.
The best White can do is prolong the mate by 1 turn with Queen Sac.
———————————————
Here is Queen line you was asking about:
31. Kh2 Qf4+ 32. g3 Qf3 33. Qh7+ Kxh7 34. a5 Qh1#.
You asked can’t White do same mate with the Queen Promotion?
The answer is Yes, but it is considered inferior to play the position like above.
The Key part to focus on is on move 33 again.
We are giving White 1 single move to save themselves.
Again, they just don’t have a saving move in this position.
Now, Watch how the computer wants to play!
31.Kh2 Qf4+ 32. g3 Qexf2+ 33. Qxf2 Qxf2+
Do you see the difference?
———————-
Previously, we was putting the Black Queen on f3 and passing the turn.
This allowed White the chance to have 1 single game saving move.
This position doesn’t have any game saving move, but in other chess games it could be possible.
——————————
By taking the f2 pawn, we force the trade of Queen.
This causes White to be losing forever as now they have no way to recover and they have no saving move.
Do you see how giving your opponent 0 saving moves is better vs. giving your opponent 1 saving move?
But if we do the above it creates an issue right? Black is winning, but it will take a lot longer to mate.
———————————
The engine has difficulty interpreting the above actions.
The way the engine fixes the situation is by under promoting to Rook so the f2 square isn’t double attacked.

Technically, the engine is correct for the reasons it gave.
(...)
The way the engine fixes the situation is by under promoting to Rook so the f2 square isn’t double attacked.
Everything you wrote in that huge wall of text is untrue. It's total fabrication on your part and it has nothing to do with reality.
In reality, the engine instantly identifies that promoting to a rook and to a queen are both mate-in-5. There is absolutely no difference.

As you can see, it makes no difference at all if you promote to queen, or rook: both are mate in 5 in identical fashion. Let's suppose that the computer thinks that promoting to rook is more "flashy", but actually both promotions are the same.
I just feel sorry for you if you wasted your precious time reading all that nonsense in post #4.


To answer the original question: chess.com's Game Review calls it an "inaccurracy" because it's bugged. It has nothing to do with the engine, the engine is fine. It's the chess.com script that's bugged.
I'm always astonished that people use Game Review and nobody seems to complain about all the bugs and other issues.

Technically, the engine is correct for the reasons it gave.
(...)
The way the engine fixes the situation is by under promoting to Rook so the f2 square isn’t double attacked.
Everything you wrote in that huge wall of text is untrue. It's total fabrication on your part and it has nothing to do with reality.
In reality, the engine instantly identifies that promoting to a rook and to a queen are both mate-in-5. There is absolutely no difference.
I didn’t fabricate anything.
The analysis I gave is based on the lines the OP engine was showing him.
I explained why an engine would do the line.
If your engine shows both mates with either promotion, than it would indicate the OP needed to let his engine think more.
However, I still think my explanation was very educational. It explains why engine would do the above things when it hasn’t been given enough time to think on position.

However, I still think my explanation was very educational. It explains why engine would do the above things when it hasn’t been given enough time to think on position.
Any engine (including chess.com's weak engine) finds the correct solution in a fraction of a second. You can verify this by clicking on the engine analysis button on the diagram. No engine would pick a mate-in-20 over a mate-in-5, and indeed, none does. The bug is in chess.com's Game Review.

However, I still think my explanation was very educational. It explains why engine would do the above things when it hasn’t been given enough time to think on position.
Any engine (including chess.com's weak engine) finds the correct solution in a fraction of a second. You can verify this by clicking on the engine analysis button on the diagram. No engine would pick a mate-in-20 over a mate-in-5, and indeed, none does. The bug is in chess.com's Game Review.
Well, we all know your statement isn’t true Magipi.
Chess.com has an entire page of engines which people can challenge at various ranking levels.
Some of them might not find mate at all.
Who really knows what engine the game review uses.

Chess.com has an entire page of engines which people can challenge at various ranking levels.
Those "personality bots" are not different engines. Obviously. Those are all artificially dumbed down versions of the Komodo engine. They are not relevant to this discussion at all.
It is very weird that now you pretend to not know what a chess engine is. Quite a flip after you pretended to know how they work and why. Of course, that explanation you gave was complete nonsense, so it gave that one away.

Chess.com has an entire page of engines which people can challenge at various ranking levels.
Those "personality bots" are not different engines. Obviously. Those are all artificially dumbed down versions of the Komodo engine. They are not relevant to this discussion at all.
It is very weird that now you pretend to not know what a chess engine is. Quite a flip after you pretended to know how they work and why. Of course, that explanation you gave was complete nonsense, so it gave that one away.
I know what a chess engine is.
I just don’t know what engine chess.com uses as their are a lot of different chess engine out there.
- Stockfish
- Komodo
- Lelia etc.
For all I know chess.com could be using multiple ones or only 1 specific one.
I never bothered to find out what engine chess.com uses so I don’t speak about it.
However, My original post was explaining why engine might prefer an alternative line to a mating line.
The simplest explanation is the engine might not see the mating line.
You respond to me was by saying “Any engine (including chess.com weak engines) find correct solution….”
Thus, I remind you the personality bots are engines as well and some of them will not find the solution.
It makes you statement incorrect.
You said any engine can find solution, but a dumb down engine can’t.
An a dumb down engine still counts as an engine which makes you factually incorrect.
————————————
What I find troubling the most is why do you consider my explanation nonsense?
I don’t understand why people are struggling to grasp that an engine can’t find a mate.
Is it really that shocking?
Engines are programmed by humans and humans program stuff all the time.
Its completely possible for human to program an engine to play badly.
—————————
Anyway, I suppose it doesn’t matter.
The OP got his answer from various people.
Why is dxe1=Q+ an inaccuracy and dxe1=R+ considered best here? Is there some stalemate possibility or something that I'm not seeing? The predicted outcome the engine talks about is different for the Queen and the Rook promotion. Could I not do the same in either case? When it is a Rook it says 31. Kh2 Qf4+ 32. g3 Qf3 33. Qh7+ Kxh7 34. a5 Rh1#. When Queen it says 31.Kh2 Qf4+ 32. g3 Qexf2+ 33. Qxf2 Qxf2+, etc. Engine quirk or something I'm missing?