One step at a time. Historic victories are one thing, but the boring need to back up such a win proved beyond Wales. Cardiff was abuzz after last weekend’s first win over the All Blacks in 73 years. A few thousand short of capacity the stadium may have been, but 66,000 rocked it as of yore. Alas, Wales’s young side could not quite respond.

Related: Ireland stand firm to beat South Africa but bonus point puts Erasmus’s men in final

This was a reversal of last weekend. In the first half particularly, Wales’s dominance was near-total, but like the All Blacks they could not make it tell. Australia had the lead at the break and in a more open second half they proved just as deadly. Thus the Wallabies claim their place in the fifth-place final at Twickenham, where they will face Ireland on Friday night. Wales must make do with a ninth-place final against Japan on Saturday.

But there was plenty to be encouraged by, all the same. That dominance was well earned, even if the composure to score during it was lacking. Australia are far from their best, but usually we can be confident they will take their chances when offered. That they did. There could be no arguments.

“Sport’s up and down, isn’t it,” said Dewi Lake, Wales’s captain. “We spoke about backing up last weekend and we didn’t with the result, but I think we backed it up with effort and energy. We had opportunities to win that game but unfortunately it wasn’t to be.”

They may not have been through the mill like Wales these past few years, but the Wallabies have not been enjoying life lately. This win ends a run of four defeats, some of them near-humiliations. But here they returned excellent performances from enough of their established names to remind the world on the eve of the World Cup they will host that they have not gone away. Tom Wright, Len Ikitau, Max Jorgensen, Josh Canham, any number of back-row forwards – all of them were superb.

Wales Murray; Rees-Zammit, E James, Llewellyn, Adams (Hennessey 66); Costelow, Williams (Morgan-Williams 46); Smith (Thomas 48), Lake (capt; Elias 58), Griffin (Lewis 65), Jenkins, Carter, Mann (Plumtree 48), Morgan, Wainwright. Yellow card Llewellyn 2. Tries Lake 2, Murray, Elias. Cons Costello 3.

Australia Wright; Jorgensen (Daugunu 67), Suali’i, Ikitau (Donaldson 75), Potter; Gordon, Lonergan (Thomas 58); Kailea (Bell 48), Paenga-Amosa (Pollard 48), Tupou (Alaalatoa ht), Canham (Williams 67), Hooper, Valetini, Tizzano (McReight 58), Wilson (capt). Yellow card Wilson 79. Tries Tupou, Paenga-Amosa, Jorgensen, Ikitau. Cons Lonergan 2, Gordon. Pen Gordon.

Referee Luc Ramos (Fr). Att 66,307.

Wales enjoyed nearly all the territory and possession in the first half, despite a yellow card for Max Llewellyn in the second minute for a head clash with Wright. But they were held up over the line twice, just like the All Blacks last weekend, and denied another score by the television match official, Louis Rees-Zammit spilling as he dived for the corner.

Instead it was the Wallabies who took an early lead with more or less their first visit to Wales’s 22. They sent a penalty to the corner and worked phase after phase, before sweet hands and timing between Brandon Paenga-Amosa and Wright had Taniela Tupou bursting through Llewellyn’s tackle to the line.

On the half-hour, Joseph-Aukuso Suaalii streaked clear from his own 22. To much rejoicing, Rees-Zammit chased him down by the time he had reached Wales’s, but the latter conceded a penalty, which Australia sent to the corner, where Paenga-Amosa finished from the lineout.

Wales had to wait until the clock was in the red before the break for their first points, Dewi Lake finishing from a penalty to the corner, but Australia re-established their 12-point lead a few minutes into the second half, when Jorgensen was put away by some great handling.

Wales responded well to that test, at least, taking the lead for the first time with two tries within five minutes of each other, the first a gem. Flowing hands from a lineout earned Rees-Zammit a one on one with Harry Potter. Only one winner. Away he went, finding Josh Adams in support. Wales’s other winger handed on to Blair Murray, who streaked home. Sam Costello converted from the touchline. Five minutes later, he converted from the other one, after Lake finished from another penalty sent to the corner.

With a 21-19 lead established as the game reached the final quarter, a team of genuine confidence would have closed it out. Wales are not that yet. Instead, Australia put themselves more than a score clear. Ikitau claimed their fourth after more fine approach play from Wright and Jorgensen, among others. That hurt, but when Aaron Wainwright was caught offside in he last 10 minutes, Carter Gordon landed the penalty to put Australia eight points ahead.

All matches at Allianz Stadium, Twickenham

Friday 27 November
Eleventh-place final Italy v Fiji 4.40pm
Fifth-place final Ireland v Australia 8.10pm

Saturday 28 November
Ninth-place final Wales v Japan 1.10pm
Third-place final England v New Zealand 4.40pm

Sunday 29 November
Seventh-place final Scotland v Argentina 1.10pm
Nations Championship final France v South Africa 4.40pm

At least Wales finished with not only two bonus points but the last score of the game. Harry Wilson was sent to the bin with two minutes remaining, after Wales sent penalty after penalty to the corner. They finished at the fourth attempt, when Ryan Elias touched down, affording them one last tilt.

They are much improved but to score from their own 22 with time up proved a step too far. They did work the ball into Australian territory but in the breathlessness of it all the knock-on that ended their challenge felt inevitable.

Progress and work still to do. Wales would have taken that if they had been offered it.