I've replaced batteries on both FD and GD cars without any issues. The main thing is to use an AGM battery if the car has auto stop-start. If you go on-line you will find manufacturers have selector guides to help pick the right battery for your car.
I changed the battery on my 2015 diesel but only because the dealer suggested the battery was starting to degrade (it was just over 3 years old). They proposed an Exide battery as a replacement but I declined it and fitted a Yuasa battery myself at less than half the cost. I kept the original Hyundai battery and lent it to someone with a 1.9 diesel Vauxhall Vectra. That battery has been in their car for over a year and is still working fine, which makes me question whether it really was degrading like the dealer claimed it was. The Yuasa failed after 6 months but was replaced under warranty.
On my 2011 diesel (without stop-start) the original battery failed after about 3 years, I then replaced with a Bosch battery (4 yr warranty). The Bosch battery started to fade after about 4 1/2 years, so changed again with a Yuasa this time.