Tube Deformation Animation with Pill Passing Through
I looked up the Dynamic Paint approach that @vklidu cited and it worked very well. Blender 2.8+ changed a few things, which actually made this task easier. There's a displacement option directly in the canvas settings for the object, and when everything's set up right, it works great, and procedurally, is flawless.