Other than that: Germany was in advanced talks with multiple suppliers way earlier than most EU countries in Summer 2020, was able to spend more and even got offered priority supply from Biontech (which only supplies Germany and Turkey directly, all other countries are supplied through Pfizer). Chancellor Merkel specifically ordered these talks and procurement efforts to be stopped, so that in solidarity with other EU countries procurement would be centralized by the EU (which then did everything wrong without politicians, also German politicians, intervening).
In hindsight it would've been way faster, cheaper and easier had Germany just procured enough vaccine for the whole EU on its own. The additional contract you mention was closed after the end of EU talks (not a few weeks after it started),is in no direct competition (as it will be delivered afterwards) and will he shared with other countries anyway.
If you look at it from another angle: There is no other country in the world, where one of the best vaccines has been developed and is produced in vast quantities and that has been offered priority supply for the whole population, but declined that and exports way more vaccine than it is using itself. All while the economy is on shutdown and people are dying.
I agree that (german) politicians did almost everything wrong in this crisis - but to accuse them of egoism is the last thing that would come to my mind.