If it’s a 2D object, the most common way is to draw it last with depth test disabled.
If it’s a 3D object in need of depth testing, draw it last and clear the depth buffer before rendering it.
Other tricks are glDepthRange settings where zFar ends up in front of your other scene’s depth values.