Why didn’t the Death Star just jump in a position where it could immediately fire at Yavin 4, instead of circling the planet for half an hour?
Because it was clearly tracking/following the Millennium Falcon. The film shows the Falcon, having come out of hyperspace, arriving at a big red planet and flying under (around) it to a little blue planet. It makes sense that the DS would follow suit and assess things from there.