What a 302 redirect means
The 302 code states that the requested resource is temporarily at another address and that the original one remains the valid reference. The specification puts it plainly: the client should keep using the source URL for future requests, because the diversion may disappear at any moment. That is the whole distance to the 301, which declares the move final.
There is a second temporary code that almost nobody uses and that is the right one in certain cases: the 307. The difference has nothing to do with the search engine and everything to do with the request method. For historical reasons, a browser may turn a POST request that receives a 302 into a GET, meaning it can arrive at the target having lost the data it carried. The 307 forbids that method change explicitly. On a normal page, requested with GET, both codes behave the same way and Google treats them the same way. On a form, at a payment gateway or at an API endpoint, that same difference decides whether the request arrives whole or arrives empty.