For example, to machine this part:
The stock is a cylinder with a hole, and a Side feature is created.
In the 2D simulation top view, you can see the toolpaths are trimmed to the stock solid, the tool does not cut across the hole in the stock: