It's a graphics rendering API by Microsoft. One is more recent than the other and has more features. Not all systems will support DX12 but DX11 might be more stable.
Another option is Vulkan, which can be forced by adding -vulkan to launch options. That is generally better for Linux users.