In one of the Reaper forums, some are saying to take the end point of the audio that is out of sync and stretch it (whichever way it needs to go) to make it line up with the end of the reference audio. Supposedly that compresses or expands it to where it needs to be. With things like vocal takes though, since there are spaces between lines one can often just nudge a clip and get it sounding right.
Not long ago I made a YT video of some guys and I jamming at a club in Taiwan. I shot the video on an Insta360 One X2, and I recorded audio with my Zoom H2N handy recorder. When the video and audio tracks were dropped into the video editor they didn't synchronize perfectly. At some points along the timeline, I split the audio tracks and dragged them to match the audio from the camera. The "room tone" from the camera provided some ambient fill to mask those small adjustments and smooth out the resulting audio. I think the sound is quite good, considering it's just a camera and a handy recorder sitting in front of the stage. Realizing that these things can happen going into whatever project you're doing, you can make allowances for it by using as many devices as you can to record audio. Even having an audio track from a mobile phone can give you some room tone to mask edits in the main audio. That is a very old professional feature film technique. Also, having a studio allows me to create a digital space to put the scene into and that can make a huge difference when making those time-align edits.