Twitter is sueing for specific performance (aka pay up the full price) and argues that Elon's funding by banks is still comitted and must be used to buy Twitter at 54.40 a share.
IANAL but this court already did enforce similar contracts in the past.
Of course the parties can also settle out of court at any time under any terms.