I would always use NVEnc with a high enough bitrate for local recording. Seems to crash less than x264, at least for me. It barely touches the CPU, and since it uses a separate chip on the GPU, doesn't affect games that are GPU-bound either, at least no more than OBS would in any case. The argument that x264 is higher quality is nullified by the fact that you're not streaming it, just saving it to your hard drive. You can simply record at a higher bitrate to make up for any quality-per-bit differences.