Google’s John Mueller said on Twitter that Google that 302 redirects are more about telling Google that the source URL might be preferred, while a permanent 301 redirect suggest the destination URL:
With redirects, we tend to put URLs into the same bucket, and then use canonicalization to pick which one to show. The rankings will generally be the same, so whether it's source or destination URL doesn't really matter.
— ? John ? (@JohnMu) April 8, 2021
A temporary redirect (like a 302) is more about telling us the source URL might be preferred, while a permanent one suggests the destination URL would be. We use a lot more than just redirects for canonicalization though.
— ? John ? (@JohnMu) April 8, 2021
How to check redirects on your website
Use the website audit tool in SEOprofiler to check redirects on your website: