As i understand that Router B doesn't send advertisement about 172.16.0.0 network ( network 172.16.0.0 --- command) so it will not make a adjacency with Router A ... so the AD here is not a big deal , it will take RIP as routing protocol although it has a higher AD.