You can use a second camera to render the meshes that should not receive SSAO and use the technic described in this post to make it work:
As an example:
You can use a second camera to render the meshes that should not receive SSAO and use the technic described in this post to make it work:
As an example: