There is a subtle difference in focus, apart from the differences in formality. Using “was” is more distant and neutral. Using “get” is more personal and focuses on the loss.
Police talking to a crime victim.
What was stolen? (Yes, an impartial request for information)
What got stolen? (No. )
I’m sorry that your car got stolen.
I’m sorry that your car was stolen. (Both sound fine)
Don’t park in the alley unless you want your car to get stolen. (Very natural. Conveys concern)
Don’t park in the alley unless you want your car to be stolen. (OK, but sounds oddly formal and detached)