x264 opponents are earlier versions of AV1, namely VP8 and VP9.
x265 should be what is compared against AV1 when discussing quality and encode speeds.
We use x264 for compatibility purposes, if your device is intended to play video, it will decode x264. x265 decoders are in a lot of devices at this point, and AV1 is just now starting to see representation.
x264 is like .jpeg and will probably never die.