G1 GC, the default since Java 9, excels in balancing predictable pauses and high throughput for medium to large heaps (e.g., >32GB), making it suitable for many ML workloads where raw throughput is key. Parallel GC, a multi-threaded option, remains a top performer for maximum throughput in batch ML processing, accepting longer pauses for overall work completion.