Pretty much my logic, but I also have a vibration sensing alarm. In my extremely safe neighborhood (where most people don’t lock their bikes up) I’ll sometimes dip into a quick stop with the u-lock through the rear wheel to the frame, keeping it from rolling, and the alarm set.
Once in a pinch I wrapped my chain around a huge concrete pillar - it barely fit - and the u-lock between the chain and my frame.