Use this code to use different column names after using df.join, you can't have two columns with the same name.
df.join
result_df = joined_df.select( "b", F.col("a").alias("a_x"), F.col("a").alias("a_y") )