There are even times when this is the right move. Sometimes you can put them in check by promoting to a knight, for example, where a queen would not. Common in beginner puzzles.
This is a very nice illustration of this, where a player had to turn off autoconversion to queen on the last seconds to win the game: https://youtu.be/HFG8pCInJKw
Text: https://en.chessbase.com/post/solution-to-a-truly-remarkable...