H.265 has a higher compression rate than H.264, resulting in higher-quality video with smaller file sizes. However, H.264 is still extensively used and a good option for many applications, particularly those with restricted bandwidth. Keep in mind they both are codecs used for mastering. ProRes and DNxHR are the best codecs for post-production.