World number five Daniil Medvedev and defending champion Alexander Bublik are both knocked out of the Halle Open.